mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
bug in len
SVN=121618
This commit is contained in:
parent
316bc2637d
commit
b6eca3534c
|
@ -144,7 +144,7 @@ cgen(Node *n, Node *res)
|
|||
case OLEN:
|
||||
if(isptrto(nl->type, TSTRING)) {
|
||||
regalloc(&n1, types[tptr], res);
|
||||
cgen(nl, res);
|
||||
cgen(nl, &n1);
|
||||
n1.op = OINDREG;
|
||||
n1.type = types[TINT32];
|
||||
gmove(&n1, res);
|
||||
|
|
Loading…
Reference in a new issue