Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(160)

Unified Diff: src/pkg/runtime/hashmap.c

Issue 7746045: code review 7746045: runtime: fix gdb printing of maps (Closed)
Patch Set: diff -r a3717460e37c https://code.google.com/p/go/ Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/ld/dwarf.c ('k') | src/pkg/runtime/runtime-gdb.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/hashmap.c
===================================================================
--- a/src/pkg/runtime/hashmap.c
+++ b/src/pkg/runtime/hashmap.c
@@ -222,7 +222,7 @@
keysize = sizeof(byte*);
}
valuesize = t->elem->size;
- if(valuesize >= MAXVALUESIZE) {
+ if(valuesize > MAXVALUESIZE) {
flags |= IndirectValue;
valuesize = sizeof(byte*);
}
« no previous file with comments | « src/cmd/ld/dwarf.c ('k') | src/pkg/runtime/runtime-gdb.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b