瀏覽代碼

* range error

git-svn-id: trunk@5509 -
peter 19 年之前
父節點
當前提交
8e4e504cd8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/ptconst.pas

+ 2 - 2
compiler/ptconst.pas

@@ -242,10 +242,10 @@ implementation
           if (p.nodetype = pointerconstn) then
             begin
               if sizeof(TConstPtrUInt)=8 then
-                list.concat(Tai_const.Create_64bit(TConstPtrUInt(tpointerconstnode(p).value)))
+                list.concat(Tai_const.Create_64bit(int64(tpointerconstnode(p).value)))
               else
                 if sizeof(TConstPtrUInt)=4 then
-                  list.concat(Tai_const.Create_32bit(TConstPtrUInt(tpointerconstnode(p).value)))
+                  list.concat(Tai_const.Create_32bit(longint(tpointerconstnode(p).value)))
               else
                 internalerror(200404122);
             end