Browse Source

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

git-svn-id: trunk@1632 -
tom_at_work 20 years ago
parent
commit
7a1860190b
1 changed files with 1 additions and 1 deletions
  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
             begin
               if GetInt>0 then
               if GetInt>0 then
                 begin
                 begin
-                  pPtrInt(Pointers[i])^:=StrToInt(s1);
+                  pLongint(Pointers[i])^:=StrToInt(s1);
                   inc(Result);
                   inc(Result);
                 end
                 end
               else
               else