فهرست منبع

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

git-svn-id: trunk@29990 -
pierre 10 سال پیش
والد
کامیت
85a7b9d9cf
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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);