Browse Source

* fixed msdos .com file generation

git-svn-id: trunk@40720 -
nickysn 6 years ago
parent
commit
635a6c7ef8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ogomf.pas

+ 1 - 1
compiler/ogomf.pas

@@ -2684,7 +2684,7 @@ implementation
             ObjSec:=TOmfObjSection(ExeSec.ObjSectionList[i]);
             ObjSec:=TOmfObjSection(ExeSec.ObjSectionList[i]);
             if ObjSec.MemPos<Header.LoadableImageSize then
             if ObjSec.MemPos<Header.LoadableImageSize then
               begin
               begin
-                FWriter.WriteZeros(max(0,ObjSec.MemPos-ComFileOffset-FWriter.Size));
+                FWriter.WriteZeros(max(0,int64(ObjSec.MemPos)-ComFileOffset-int64(FWriter.Size)));
                 if assigned(ObjSec.Data) then
                 if assigned(ObjSec.Data) then
                   begin
                   begin
                     if ObjSec.MemPos<ComFileOffset then
                     if ObjSec.MemPos<ComFileOffset then