Explorar o código

* 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 %!s(int64=17) %!d(string=hai) anos
pai
achega
469452b0ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);