small bug fixes
This commit is contained in:
parent
1be1539ea8
commit
f1ad497719
@ -343,6 +343,13 @@ typecmp(Type *t, Type *u)
|
|||||||
if(i)
|
if(i)
|
||||||
return i;
|
return i;
|
||||||
|
|
||||||
|
if(t->ty == Aggr){
|
||||||
|
if(t->n > u->n)
|
||||||
|
return -1;
|
||||||
|
if(t->n < u->n)
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if(t->name || t->suename)
|
if(t->name || t->suename)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -445,7 +452,7 @@ ttt=ttt->sub;
|
|||||||
case Pointer:
|
case Pointer:
|
||||||
ttt = defer(tt->sub);
|
ttt = defer(tt->sub);
|
||||||
if(ttt && ttt->ty == Aggr)
|
if(ttt && ttt->ty == Aggr)
|
||||||
Bprint(b, "\tprint(indent, \"%s\t%s(\", addr.%s, \")\\n\");\n",
|
Bprint(b, "\tprint(indent, \"%s\t(%s)\", addr.%s, \"\\n\");\n",
|
||||||
name, nameof(ttt, 1), name);
|
name, nameof(ttt, 1), name);
|
||||||
else
|
else
|
||||||
goto base;
|
goto base;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user