2
0
Эх сурвалжийг харах

* 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 жил өмнө
parent
commit
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);