Commit 92f74ca7 authored by Russ Cox's avatar Russ Cox

[] fixes

R=ken
OCL=21565
CL=21565
parent 4026500d
......@@ -440,7 +440,7 @@ aindex(Node *b, Type *t)
r = typ(TARRAY);
r->type = t;
r->bound = bound;
dowidth(r);
checkwidth(r);
return r;
}
......
......@@ -1995,6 +1995,7 @@ newcompat(Node *n)
if(t == T)
goto bad;
/*
if(isptr[t->etype]) {
if(t->type == T)
goto bad;
......@@ -2012,12 +2013,13 @@ newcompat(Node *n)
r->type = n->type;
goto ret;
}
*/
switch(t->etype) {
default:
goto bad;
case TSTRUCT:
// goto bad;
//
// case TSTRUCT:
if(n->left != N)
yyerror("dont know what new(,e) means");
......@@ -3510,7 +3512,7 @@ maplit(Node *n)
tempname(var, t);
a = nod(ONEW, N, N);
a->type = t;
a->type = t->type;
a = nod(OAS, var, a);
addtop = list(addtop, a);
......
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