瀏覽代碼

* fixed warning about always-true comparison when compiling a 16 bit target

git-svn-id: trunk@28461 -
Jonas Maebe 11 年之前
父節點
當前提交
ee76e8dbf5
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/symdef.pas

+ 2 - 0
compiler/symdef.pas

@@ -2433,8 +2433,10 @@ implementation
          savesize:=8
 {$IFDEF not cpu64bitaddr} {$pop} {$ENDIF}
         else
+{$IFDEF cpu16bitaddr} {$push}{$warnings off} {$ENDIF} //comparison always false warning
          if (current_settings.packenum=4) or (min<low(smallint)) or (max>high(word)) then
           savesize:=4
+{$IFDEF cpu16bitaddr} {$pop} {$ENDIF}
         else
          if (current_settings.packenum=2) or (min<low(shortint)) or (max>high(byte)) then
           savesize:=2