Răsfoiți Sursa

* range error

git-svn-id: trunk@5509 -
peter 19 ani în urmă
părinte
comite
8e4e504cd8
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      compiler/ptconst.pas

+ 2 - 2
compiler/ptconst.pas

@@ -242,10 +242,10 @@ implementation
           if (p.nodetype = pointerconstn) then
           if (p.nodetype = pointerconstn) then
             begin
             begin
               if sizeof(TConstPtrUInt)=8 then
               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
               else
                 if sizeof(TConstPtrUInt)=4 then
                 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
               else
                 internalerror(200404122);
                 internalerror(200404122);
             end
             end