aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/hashmap.c
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-01-14 13:46:22 -0800
committerKeith Randall <khr@golang.org>2014-01-14 13:46:22 -0800
commit8454e2c2878cbef57038c6603265d8baaae64a4e (patch)
treebac8421999a85e649d08a3c57649a44a72266b7e /src/pkg/runtime/hashmap.c
parent26cc10289f6e0dd2cebf0195f1351d6790ed7a9e (diff)
downloadgo-8454e2c2878cbef57038c6603265d8baaae64a4e.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/hashmap.c')
-rw-r--r--src/pkg/runtime/hashmap.c2
1 files changed, 1 insertions, 1 deletions
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