1
0
mirror of https://github.com/golang/go synced 2024-11-17 00:04:40 -07:00

len(fixed array)

SVN=128050
This commit is contained in:
Ken Thompson 2008-07-18 11:59:35 -07:00
parent 0ca551fc36
commit 4c5a165873
2 changed files with 5 additions and 1 deletions

View File

@ -613,3 +613,4 @@ void dumpobj(void);
void dowidth(Type*);
void argspace(long);
Node* nodarg(Type*, int);
void nodconst(Node*, Type*, vlong);

View File

@ -501,8 +501,11 @@ loop:
default:
goto badt;
case TSTRING:
break;
case TMAP:
case TDARRAY:
break;
case TARRAY:
nodconst(n, types[TINT32], t->bound);
break;
}
n->type = types[TINT32];