diff --git a/compiler/symdef.pas b/compiler/symdef.pas index 595d0ec288..7e86247037 100644 --- a/compiler/symdef.pas +++ b/compiler/symdef.pas @@ -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 (minhigh(cardinal)) then + if (packenum=8) or (int64(min)high(cardinal)) then savesize:=8 {$IFNDEF cpu64bitaddr} {$pop} {$ENDIF} else