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:
Stephen Heumann 2021-02-04 12:39:27 -06:00
parent a59a2427fd
commit 10cf6e446d

View File

@ -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: