mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-06 12:56:08 +02:00
* fix range check error when compiling with 2.2.x
git-svn-id: trunk@9650 -
This commit is contained in:
parent
f6384b9361
commit
bbae08d0ef
@ -458,7 +458,11 @@ implementation
|
|||||||
result := left.getcopy;
|
result := left.getcopy;
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
{$ifdef VER2_2}
|
||||||
|
else if (tordconstnode(right).value.svalue = -1) and (tordconstnode(right).value.signed) then
|
||||||
|
{$else}
|
||||||
else if tordconstnode(right).value = -1 then
|
else if tordconstnode(right).value = -1 then
|
||||||
|
{$endif}
|
||||||
begin
|
begin
|
||||||
case nodetype of
|
case nodetype of
|
||||||
muln:
|
muln:
|
||||||
@ -488,7 +492,11 @@ implementation
|
|||||||
result := right.getcopy;
|
result := right.getcopy;
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
{$ifdef VER2_2}
|
||||||
|
else if (tordconstnode(left).value.svalue = -1) and (tordconstnode(left).value.signed) then
|
||||||
|
{$else}
|
||||||
else if tordconstnode(left).value = -1 then
|
else if tordconstnode(left).value = -1 then
|
||||||
|
{$endif}
|
||||||
begin
|
begin
|
||||||
case nodetype of
|
case nodetype of
|
||||||
muln:
|
muln:
|
||||||
|
Loading…
Reference in New Issue
Block a user