浏览代码

* use asInt64 instead of asInt to evaluate an Integer expression

git-svn-id: trunk@45052 -
svenbarth 5 年之前
父节点
当前提交
ae2801c707
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/scanner.pas

+ 2 - 2
compiler/scanner.pas

@@ -1329,12 +1329,12 @@ type
 
   function texprvalue.isBoolean: Boolean;
     var
-      i: integer;
+      i: int64;
     begin
       result:=is_boolean(def);
       if not result and is_integer(def) then
         begin
-          i:=asInt;
+          i:=asInt64;
           result:=(i=0)or(i=1);
         end;
     end;