mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 21:50:14 +02:00
Use uvalue field to get unsigned and avoid range check or overflow errors
git-svn-id: trunk@48977 -
This commit is contained in:
parent
77f3acdf76
commit
85fa313e59
@ -464,7 +464,7 @@ interface
|
||||
end
|
||||
else
|
||||
begin
|
||||
d:=tordconstnode(right).value.svalue;
|
||||
d:=tordconstnode(right).value.uvalue;
|
||||
if d>=aword(1) shl (left.resultdef.size*8-1) then
|
||||
begin
|
||||
location.register:=cg.getintregister(current_asmdata.CurrAsmList,cgsize);
|
||||
|
Loading…
Reference in New Issue
Block a user