mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-03-15 18:29:49 +00:00
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:
parent
c28e48a54f
commit
a39c06d268
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user