added cast to avoid compiler warning
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Thu, 19 Apr 2007 14:33:33 +0000 (14:33 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Thu, 19 Apr 2007 14:33:33 +0000 (14:33 +0000)
[r13412]

ir/adt/hashset.c

index 098b1b2..d452ec5 100644 (file)
@@ -525,7 +525,7 @@ void hashset_init_size(HashSet *this, size_t expected_elements)
                abort();
        }
 
-       needed_size = expected_elements * (1.0 / HT_OCCUPANCY_FLT);
+       needed_size = expected_elements * (int)(1.0 / HT_OCCUPANCY_FLT);
        po2size = ceil_po2(needed_size);
        init_size(this, po2size);
 }