소스 검색

* 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);