mirror of https://github.com/golang/go.git
parent
e28ccebd3a
commit
47580f79b4
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue