Explorar el Código

* range error

git-svn-id: trunk@5509 -
peter hace 18 años
padre
commit
8e4e504cd8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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