(build_binary_op): Don't set shorten for signed division.
From-SVN: r1623
This commit is contained in:
parent
fea868cb1a
commit
6c9e1cb251
@ -2283,7 +2283,9 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
|
||||
if (!(code0 == INTEGER_TYPE && code1 == INTEGER_TYPE))
|
||||
resultcode = RDIV_EXPR;
|
||||
else
|
||||
shorten = 1;
|
||||
/* When dividing two signed integers, you have to promote to int.
|
||||
E.g. (short) -32868 / (short) -1 doesn't fit in a short. */
|
||||
shorten = TREE_UNSIGNED (op0);
|
||||
common = 1;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user