Browse Source

* small 64 bit compatibility fixes

git-svn-id: trunk@8858 -
florian 18 years ago
parent
commit
adbd4cd6c7
2 changed files with 2 additions and 2 deletions
  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
               begin
                 P.l1:=SeenExitCode;
-                ErrS:=hexstr(longint(SeenErrorAddr),8);
+                ErrS:=hexstr(PtrUInt(SeenErrorAddr),sizeof(PtrUInt)*2);
                 P.s:=@ErrS;
                 if OKCancelBox(error_programexitedwitherror,@P)=cmCancel then
                   UserWantsToGoOn:=true;

+ 1 - 1
ide/fpviews.pas

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