projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BugFix: works again for RAW with non twos-complement
[libfirm]
/
ir
/
adt
/
set.c
diff --git
a/ir/adt/set.c
b/ir/adt/set.c
index
8ddd09a
..
6411e38
100644
(file)
--- a/
ir/adt/set.c
+++ b/
ir/adt/set.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-47,6
+47,8
@@
# include "config.h"
#endif
# include "config.h"
#endif
+#include "firm_config.h"
+
#ifdef PSET
# define SET pset
# define PMANGLE(pre) pre##_pset
#ifdef PSET
# define SET pset
# define PMANGLE(pre) pre##_pset
@@
-186,7
+188,7
@@
SET *
(PMANGLE(new)) (MANGLEP(cmp_fun) cmp, int nslots)
{
int i;
(PMANGLE(new)) (MANGLEP(cmp_fun) cmp, int nslots)
{
int i;
- SET *table =
xmalloc(sizeof(*table)
);
+ SET *table =
XMALLOC(SET
);
if (nslots > SEGMENT_SIZE * DIRECTORY_SIZE)
nslots = DIRECTORY_SIZE;
if (nslots > SEGMENT_SIZE * DIRECTORY_SIZE)
nslots = DIRECTORY_SIZE;