diff options
| author | Keith Randall <khr@golang.org> | 2013-03-29 11:04:07 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2013-03-29 11:04:07 -0700 |
| commit | fb3ed166e39fd13689b35ca7aa2496e113cbeaf5 (patch) | |
| tree | 842a7adcc5ed12521bd0da8e8eccc6ad3a09f38e /src/pkg/runtime/hashmap.c | |
| parent | c1786a9e3b99f4d243425b9db3de726a3b01a8e0 (diff) | |
| download | go-fb3ed166e39fd13689b35ca7aa2496e113cbeaf5.tar.xz | |
runtime: fix gdb printing of maps
Fixes #5098
R=minux.ma, bradfitz, khr, rsc
CC=golang-dev
https://golang.org/cl/7746045
Diffstat (limited to 'src/pkg/runtime/hashmap.c')
| -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 6cd5c480d5..a2ad1a0812 100644 --- a/src/pkg/runtime/hashmap.c +++ b/src/pkg/runtime/hashmap.c @@ -222,7 +222,7 @@ hash_init(MapType *t, Hmap *h, uint32 hint) keysize = sizeof(byte*); } valuesize = t->elem->size; - if(valuesize >= MAXVALUESIZE) { + if(valuesize > MAXVALUESIZE) { flags |= IndirectValue; valuesize = sizeof(byte*); } |
