mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 09:30:21 +02:00
Fix calcsavesize for cross-compilation from aarch64 to arm, by forcing 64-bit computation also on min<low(longint) part
git-svn-id: trunk@34864 -
This commit is contained in:
parent
565ad7f852
commit
3919ffccf2
@ -2584,7 +2584,7 @@ implementation
|
||||
procedure tenumdef.calcsavesize(packenum: shortint);
|
||||
begin
|
||||
{$IFNDEF cpu64bitaddr} {$push}{$warnings off} {$ENDIF} //comparison always false warning
|
||||
if (packenum=8) or (min<low(longint)) or (int64(max)>high(cardinal)) then
|
||||
if (packenum=8) or (int64(min)<low(longint)) or (int64(max)>high(cardinal)) then
|
||||
savesize:=8
|
||||
{$IFNDEF cpu64bitaddr} {$pop} {$ENDIF}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user