mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-02-22 18:29:12 +00:00
Add long long support for a couple lint checks.
This commit is contained in:
parent
d2fb8cc27e
commit
fc3bd32e65
@ -2828,7 +2828,8 @@ var
|
||||
|
||||
begin {CheckDivByZero}
|
||||
if opType^.kind = scalarType then
|
||||
if opType^.baseType in [cgByte,cgWord,cgUByte,cgUWord,cgLong,cgULong] then
|
||||
if opType^.baseType in
|
||||
[cgByte,cgWord,cgUByte,cgUWord,cgLong,cgULong,cgQuad,cgUQuad] then
|
||||
if ((divisor.class = intConstant) and (divisor.ival = 0))
|
||||
or ((divisor.class = longConstant) and (divisor.lval = 0))
|
||||
or ((divisor.class = longlongConstant)
|
||||
@ -2870,6 +2871,9 @@ var
|
||||
if opType^.baseType in [cgLong,cgULong] then
|
||||
if (shiftCount < 0) or (shiftCount > 31) then
|
||||
Error(130);
|
||||
if opType^.baseType in [cgQuad,cgUQuad] then
|
||||
if (shiftCount < 0) or (shiftCount > 63) then
|
||||
Error(130);
|
||||
end; {if}
|
||||
end; {CheckShiftOverflow}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user