summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/hashmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/hashmap.c')
-rw-r--r--src/pkg/runtime/hashmap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pkg/runtime/hashmap.c b/src/pkg/runtime/hashmap.c
index 281601fbc..ccb5cfdb5 100644
--- a/src/pkg/runtime/hashmap.c
+++ b/src/pkg/runtime/hashmap.c
@@ -769,8 +769,10 @@ void
av = (byte*)&h + h->vo1;
mapaccess(h, ak, av, &pres);
- if(!pres)
- throw("runtime.mapaccess1: key not in map");
+
+// new spec -- all elements have "zero" value
+// if(!pres)
+// throw("runtime.mapaccess1: key not in map");
if(debug) {
prints("runtime.mapaccess1: map=");