mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 18:47:52 +02:00
* 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:
parent
62df4a4083
commit
3ca6034523
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user