mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-08-15 07:27:27 +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:
@@ -1757,6 +1757,8 @@ if expressionType^.kind = scalarType then begin
|
||||
Gen1t(pc_ldc, 0, cgWord);
|
||||
cgLong,cgULong:
|
||||
GenLdcLong(0);
|
||||
cgQuad,cgUQuad:
|
||||
GenLdcQuad(longlong0);
|
||||
cgReal,cgDouble,cgComp,cgExtended:
|
||||
GenLdcReal(0.0);
|
||||
otherwise:
|
||||
|
Reference in New Issue
Block a user