aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/hashmap.c
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2008-11-14 16:24:27 -0800
committerKen Thompson <ken@golang.org>2008-11-14 16:24:27 -0800
commite875055461d9b99fb4dfe2d8022098578a27a17e (patch)
tree99cf2291ec0c1840d2bdb898ffbf3fd0785cc07f /src/runtime/hashmap.c
parent23c8faaf856f7ee531c118a90efba2dbbe50eda2 (diff)
downloadgo-e875055461d9b99fb4dfe2d8022098578a27a17e.tar.xz
switch
R=r OCL=19288 CL=19288
Diffstat (limited to 'src/runtime/hashmap.c')
-rw-r--r--src/runtime/hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/hashmap.c b/src/runtime/hashmap.c
index 0bb276a54e..b70f9e952b 100644
--- a/src/runtime/hashmap.c
+++ b/src/runtime/hashmap.c
@@ -125,7 +125,7 @@ hash_init (struct hash *h,
if(datasize < sizeof (void *))
datasize = sizeof (void *);
- datasize = rnd(datasize, 8);
+ datasize = rnd(datasize, sizeof (void *));
init_sizes (hint, &init_power, &max_power);
h->datasize = datasize;
h->max_power = max_power;