浏览代码

* fixes error introduced in sscanf() when looking for 64 bit unsafe pointer casts

git-svn-id: trunk@1632 -
tom_at_work 20 年之前
父节点
当前提交
7a1860190b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/objpas/sysutils/sysstr.inc

+ 1 - 1
rtl/objpas/sysutils/sysstr.inc

@@ -2217,7 +2217,7 @@ function sscanf(const s: string; const fmt : string;const Pointers : array of Po
             begin
               if GetInt>0 then
                 begin
-                  pPtrInt(Pointers[i])^:=StrToInt(s1);
+                  pLongint(Pointers[i])^:=StrToInt(s1);
                   inc(Result);
                 end
               else