projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f368b55
)
Fixed loop val
author
Pekka Riikonen
<priikone@silcnet.org>
Mon, 3 Mar 2003 21:41:08 +0000
(21:41 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Mon, 3 Mar 2003 21:41:08 +0000
(21:41 +0000)
lib/silcutil/silchashtable.c
patch
|
blob
|
history
diff --git
a/lib/silcutil/silchashtable.c
b/lib/silcutil/silchashtable.c
index 696a0220f4c331744216bf9330a3f326276b8b07..a0c0aefd938b9c0d68245bcfa3d98abc312e4304 100644
(file)
--- a/
lib/silcutil/silchashtable.c
+++ b/
lib/silcutil/silchashtable.c
@@
-91,7
+91,7
@@
static SilcUInt32 silc_hash_table_primesize(SilcUInt32 size, SilcUInt32 *index)
{
int i;
- for (i = 0; i < sizeof(primesize); i++)
+ for (i = 0; i < sizeof(primesize)
/ sizeof(primesize[0])
; i++)
if (primesize[i] >= size) {
*index = i;
SILC_HT_DEBUG(("sizeof of the hash table is %d", primesize[*index]));