diff options
author | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-14 22:48:53 -0800 |
---|---|---|
committer | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-14 22:48:53 -0800 |
commit | 60d1ac4fec07320eed6bfb1c0f4729d57b06f79e (patch) | |
tree | b23bbc9fdb910002b9c877ca69756ab72211326e /util.cpp | |
parent | 9b133a978d5f33985a9b66d3a75165e3d50cdfa3 (diff) |
More const and signed correctness. Warnings now fit on one page!
Diffstat (limited to 'util.cpp')
-rw-r--r-- | util.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -108,7 +108,6 @@ void hash_init2( hash_table_t *h, int (*compare_func)(void *key1, void *key2), size_t capacity) { - int i; size_t sz = 32; while( sz < (capacity*4/3) ) sz*=2; @@ -127,7 +126,7 @@ void hash_init2( hash_table_t *h, } h->size = sz; - for( i=0; i< sz; i++ ) + for( size_t i=0; i< sz; i++ ) h->arr[i].key = 0; h->count=0; h->hash_func = hash_func; |