projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LRN's patch argument order
[oweals/gnunet.git]
/
src
/
util
/
container_bloomfilter.c
diff --git
a/src/util/container_bloomfilter.c
b/src/util/container_bloomfilter.c
index 180aab4c3ccbecc903f4d259fc62fc75b4d24db1..31e777dc360a8b6438c05aff38e0d7c88f3afe45 100644
(file)
--- a/
src/util/container_bloomfilter.c
+++ b/
src/util/container_bloomfilter.c
@@
-463,7
+463,8
@@
GNUNET_CONTAINER_bloomfilter_load (const char *filename, size_t size,
if (size < BUFFSIZE)
size = BUFFSIZE;
ui = 1;
- while (ui < size)
+ while ( (ui < size) &&
+ (ui * 2 > ui) )
ui *= 2;
size = ui; /* make sure it's a power of 2 */