From: Keith Randall Date: Tue, 14 Jan 2014 21:46:22 +0000 (-0800) Subject: runtime: Change size of map iter offset so 32-bit version compiles cleanly. X-Git-Tag: go1.3beta1~971 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8454e2c2878cbef57038c6603265d8baaae64a4e;p=gostls13.git runtime: Change size of map iter offset so 32-bit version compiles cleanly. R=golang-codereviews, minux.ma CC=golang-codereviews https://golang.org/cl/52310043 --- diff --git a/src/pkg/runtime/hashmap.c b/src/pkg/runtime/hashmap.c index c359e2a14d..f01779e23d 100644 --- a/src/pkg/runtime/hashmap.c +++ b/src/pkg/runtime/hashmap.c @@ -746,7 +746,7 @@ struct hash_iter byte *buckets; // bucket ptr at hash_iter initialization time struct Bucket *bptr; // current bucket - uint32 offset; // intra-bucket offset to start from during iteration + uint8 offset; // intra-bucket offset to start from during iteration (should be big enough to hold BUCKETSIZE-1) bool done; // state of table at time iterator is initialized