瀏覽代碼

* fixed warning in TOmfRecord_MODEND.DecodeFrom

git-svn-id: trunk@30592 -
nickysn 10 年之前
父節點
當前提交
07ebd29911
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/omfbase.pas

+ 1 - 1
compiler/omfbase.pas

@@ -1123,7 +1123,7 @@ implementation
         begin
         begin
           if LogicalStartAddress then
           if LogicalStartAddress then
             begin
             begin
-              if EndData>=RawRecord.RecordLength then
+              if NextOfs>=RawRecord.RecordLength then
                 internalerror(2015040305);
                 internalerror(2015040305);
               EndData:=RawRecord.RawData[NextOfs];
               EndData:=RawRecord.RawData[NextOfs];
               Inc(NextOfs);
               Inc(NextOfs);