Explorar el Código

Avoid range check error for 64bit cpu by direct writing to FormatParams array

git-svn-id: trunk@29990 -
pierre hace 10 años
padre
commit
85a7b9d9cf
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      ide/wviews.pas

+ 2 - 1
ide/wviews.pas

@@ -2342,7 +2342,8 @@ end;
 
 procedure AddFormatParam(P: pointer);
 begin
-  AddFormatParamInt(ptrint(P));
+  Inc(FormatParamCount);
+  FormatParams[FormatParamCount]:=ptrint(P);
 end;
 
 procedure AddFormatParamInt(L: longint);