浏览代码

* small 64 bit compatibility fixes

git-svn-id: trunk@8858 -
florian 18 年之前
父节点
当前提交
adbd4cd6c7
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      ide/fp.pas
  2. 1 1
      ide/fpviews.pas

+ 1 - 1
ide/fp.pas

@@ -460,7 +460,7 @@ BEGIN
             if (application<>nil) and (ideapp.displaymode=dmIDE) then
             if (application<>nil) and (ideapp.displaymode=dmIDE) then
               begin
               begin
                 P.l1:=SeenExitCode;
                 P.l1:=SeenExitCode;
-                ErrS:=hexstr(longint(SeenErrorAddr),8);
+                ErrS:=hexstr(PtrUInt(SeenErrorAddr),sizeof(PtrUInt)*2);
                 P.s:=@ErrS;
                 P.s:=@ErrS;
                 if OKCancelBox(error_programexitedwitherror,@P)=cmCancel then
                 if OKCancelBox(error_programexitedwitherror,@P)=cmCancel then
                   UserWantsToGoOn:=true;
                   UserWantsToGoOn:=true;

+ 1 - 1
ide/fpviews.pas

@@ -2676,7 +2676,7 @@ var
   LI : PEditorLineInfo;
   LI : PEditorLineInfo;
 begin
 begin
    if AAddress<>0 then
    if AAddress<>0 then
-     inherited AddLine('$'+hexstr(AAddress,8)+S)
+     inherited AddLine('$'+hexstr(AAddress,sizeof(PtrUInt)*2)+S)
    else
    else
      inherited AddLine(S);
      inherited AddLine(S);
    PL:=DisasLines^.At(DisasLines^.count-1);
    PL:=DisasLines^.At(DisasLines^.count-1);