소스 검색

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);