瀏覽代碼

* avoid check being wrongly "optimized" away (left and right
side were convered to int64, after which the expression was
considered to be never true)

git-svn-id: trunk@10372 -

Jonas Maebe 17 年之前
父節點
當前提交
469452b0ba
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/constexp.pas

+ 1 - 1
compiler/constexp.pas

@@ -131,7 +131,7 @@ begin
     internalerror(200706093)
   else if c.signed then
     result:=c.svalue
-  else if c.uvalue>high(int64) then
+  else if c.uvalue>qword(high(int64)) then
     internalerror(200706094)
   else
     result:=int64(c.uvalue);