Browse Source

* fixed warning/error when cross-compiling from 64 bit to 32/16 bit target
(depend on target bitness, not host bitness -- mantis #20749)

git-svn-id: trunk@19688 -

Jonas Maebe 13 years ago
parent
commit
a1ff3b24b9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/symdef.pas

+ 2 - 2
compiler/symdef.pas

@@ -1740,10 +1740,10 @@ implementation
 
     procedure tenumdef.calcsavesize;
       begin
-{$IFDEF CPU32} {$push}{$warnings off} {$ENDIF} //comparison always false warning
+{$IFNDEF cpu64bitaddr} {$push}{$warnings off} {$ENDIF} //comparison always false warning
         if (current_settings.packenum=8) or (min<low(longint)) or (int64(max)>high(cardinal)) then
          savesize:=8
-{$IFDEF CPU32} {$pop} {$ENDIF}
+{$IFDEF not cpu64bitaddr} {$pop} {$ENDIF}
         else
          if (current_settings.packenum=4) or (min<low(smallint)) or (max>high(word)) then
           savesize:=4