From 8454e2c2878cbef57038c6603265d8baaae64a4e Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 14 Jan 2014 13:46:22 -0800 Subject: [PATCH] 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 --- src/pkg/runtime/hashmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1