1
0
mirror of https://github.com/golang/go synced 2024-11-12 10:30:23 -07:00

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
This commit is contained in:
Keith Randall 2014-01-14 13:46:22 -08:00
parent 26cc10289f
commit 8454e2c287

View File

@ -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