projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
methods need no offset
[libfirm]
/
ir
/
adt
/
set.c
diff --git
a/ir/adt/set.c
b/ir/adt/set.c
index
1806437
..
3b15140
100644
(file)
--- a/
ir/adt/set.c
+++ b/
ir/adt/set.c
@@
-180,13
+180,12
@@
void MANGLEP(describe) (SET *table)
SET *(PMANGLE(new)) (MANGLEP(cmp_fun) cmp, size_t nslots)
{
SET *(PMANGLE(new)) (MANGLEP(cmp_fun) cmp, size_t nslots)
{
-
int i
;
-
SET *table = XMALLOC(SET)
;
+
SET *table = XMALLOC(SET)
;
+
size_t i
;
if (nslots > SEGMENT_SIZE * DIRECTORY_SIZE)
nslots = DIRECTORY_SIZE;
else {
if (nslots > SEGMENT_SIZE * DIRECTORY_SIZE)
nslots = DIRECTORY_SIZE;
else {
- assert (nslots >= 0);
/* Adjust nslots up to next power of 2, minimum SEGMENT_SIZE */
for (i = SEGMENT_SIZE; i < nslots; i <<= 1) {
}
/* Adjust nslots up to next power of 2, minimum SEGMENT_SIZE */
for (i = SEGMENT_SIZE; i < nslots; i <<= 1) {
}