mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-02-14 12:31:12 +00:00
Enable automatic comparison with 0 for long longs.
This allows them to be used in if statements and as controlling expressions for loops.
This commit is contained in:
parent
a59a2427fd
commit
10cf6e446d
@ -1757,6 +1757,8 @@ if expressionType^.kind = scalarType then begin
|
|||||||
Gen1t(pc_ldc, 0, cgWord);
|
Gen1t(pc_ldc, 0, cgWord);
|
||||||
cgLong,cgULong:
|
cgLong,cgULong:
|
||||||
GenLdcLong(0);
|
GenLdcLong(0);
|
||||||
|
cgQuad,cgUQuad:
|
||||||
|
GenLdcQuad(longlong0);
|
||||||
cgReal,cgDouble,cgComp,cgExtended:
|
cgReal,cgDouble,cgComp,cgExtended:
|
||||||
GenLdcReal(0.0);
|
GenLdcReal(0.0);
|
||||||
otherwise:
|
otherwise:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user