Commit b6eca353 authored by Ken Thompson's avatar Ken Thompson

bug in len

SVN=121618
parent 316bc263
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment