Commit d4ad8e8c authored by Ken Thompson's avatar Ken Thompson

bug fix in 6c/8c/5c mis-aligned

function arguments.

R=rsc
CC=golang-dev
https://golang.org/cl/206054
parent 2b4a9fa1
......@@ -801,7 +801,19 @@ tcoma(Node *l, Node *n, Type *t, int f)
n->type, t, l);
return 1;
}
switch(t->etype) {
// switch(t->etype) {
// case TCHAR:
// case TSHORT:
// t = types[TINT];
// break;
//
// case TUCHAR:
// case TUSHORT:
// t = types[TUINT];
// break;
// }
} else {
switch(n->type->etype) {
case TCHAR:
case TSHORT:
t = types[TINT];
......@@ -811,23 +823,12 @@ tcoma(Node *l, Node *n, Type *t, int f)
case TUSHORT:
t = types[TUINT];
break;
}
} else
switch(n->type->etype)
{
case TCHAR:
case TSHORT:
t = types[TINT];
break;
case TUCHAR:
case TUSHORT:
t = types[TUINT];
break;
case TFLOAT:
t = types[TDOUBLE];
case TFLOAT:
t = types[TDOUBLE];
}
}
if(t != T && !sametype(t, n->type)) {
n1 = new1(OXXX, Z, Z);
*n1 = *n;
......
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