From: Ken Thompson Date: Thu, 13 Nov 2008 21:20:18 +0000 (-0800) Subject: temp fix for map not multiple of 8 X-Git-Tag: weekly.2009-11-06~2735 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9795c9e72735efdf717df38f9ffe1ca1b0e9c0cb;p=gostls13.git temp fix for map not multiple of 8 R=r OCL=19166 CL=19166 --- diff --git a/src/runtime/hashmap.c b/src/runtime/hashmap.c index 1a8e68c39c..0bb276a54e 100644 --- a/src/runtime/hashmap.c +++ b/src/runtime/hashmap.c @@ -125,6 +125,7 @@ hash_init (struct hash *h, if(datasize < sizeof (void *)) datasize = sizeof (void *); + datasize = rnd(datasize, 8); init_sizes (hint, &init_power, &max_power); h->datasize = datasize; h->max_power = max_power;