* inserted type casts on opr.val again, but depending on the type of opr.val, avoids range check errors

git-svn-id: trunk@38341 -
This commit is contained in:
florian 2018-02-25 15:32:38 +00:00
parent 62df4a4083
commit 3ca6034523

View File

@ -1723,7 +1723,12 @@ unit raatt;
else
begin
oper.opr.typ:=OPR_CONSTANT;
oper.opr.val:=l;
{ cast properly to avoid a range check error }
{$if defined(AVR) or defined(i8086)}
oper.opr.val:=longint(l);
{$else}
oper.opr.val:=aint(l);
{$endif}
end;
end;