X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fset.c;h=3b15140e4d31cc5f4790ce9b655be07806902a38;hb=a570fca6677ea8d74f2f5aa5462636696bb92559;hp=1806437fe0100d8d63ddc8a877b78ea847abb7ab;hpb=29fff22a0aac95ec7acfe76c862b93839acf9a0a;p=libfirm diff --git a/ir/adt/set.c b/ir/adt/set.c index 1806437fe..3b15140e4 100644 --- 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) { - int i; - SET *table = XMALLOC(SET); + SET *table = XMALLOC(SET); + size_t i; 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) { }