Usual unary conversions (promotions) should promote unsigned char to int, not unsigned int.

This fixes the compca13.c test case.
This commit is contained in:
Stephen Heumann 2015-12-21 23:49:19 -06:00
parent c28e48a54f
commit a39c06d268

View File

@ -288,10 +288,8 @@ function Unary(tp: baseTypeEnum): baseTypeEnum;
begin {Unary}
if tp in [cgByte,cgUByte,cgReal,cgDouble,cgComp] then
if tp = cgByte then
if tp in [cgByte,cgUByte] then
tp := cgWord
else if tp = cgUByte then
tp := cgUWord
else {if tp in [cgReal,cgDouble,cgComp] then}
tp := cgExtended;
Unary := tp;