R=r
OCL=15192
CL=15192
This commit is contained in:
Ken Thompson 2008-09-11 19:09:25 -07:00
parent e28ccebd3a
commit 47580f79b4
2 changed files with 2 additions and 0 deletions

View File

@ -406,6 +406,7 @@ loop:
case OINDEXPTR:
if(cl == 2 && cr == 1) {
// a,b = map[] - mapaccess2
walktype(r->left, Erv);
if(!isptrto(r->left->type, TMAP))
break;
l = mapop(n, top);

View File

@ -114,6 +114,7 @@ sys·mapaccess1(Hmap *m, ...)
}
m->valalg->copy(m->valsize, av, 0);
throw("sys·mapaccess1: key not in map");
out:
if(debug) {