diff options
| author | Keith Randall <khr@golang.org> | 2014-01-14 13:46:22 -0800 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2014-01-14 13:46:22 -0800 |
| commit | 8454e2c2878cbef57038c6603265d8baaae64a4e (patch) | |
| tree | bac8421999a85e649d08a3c57649a44a72266b7e /src/pkg/runtime | |
| parent | 26cc10289f6e0dd2cebf0195f1351d6790ed7a9e (diff) | |
| download | go-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')
| -rw-r--r-- | src/pkg/runtime/hashmap.c | 2 |
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 |
