浏览代码

* check that the PPU version of a unit loaded for package adjustment matches exactly (we don't accept different versions when loading PPUs normally, so why should we with packages?)

git-svn-id: trunk@37971 -
svenbarth 7 年之前
父节点
当前提交
9eb5f07538
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/pkgutil.pas

+ 1 - 1
compiler/pkgutil.pas

@@ -287,7 +287,7 @@ implementation
          Exit;
          Exit;
        end;
        end;
       ppuversion:=inppu.getversion;
       ppuversion:=inppu.getversion;
-      if ppuversion<CurrentPPUVersion then
+      if ppuversion<>CurrentPPUVersion then
        begin
        begin
          inppu.free;
          inppu.free;
          Comment(V_Error,'Wrong PPU Version '+tostr(ppuversion)+' in '+PPUFn);
          Comment(V_Error,'Wrong PPU Version '+tostr(ppuversion)+' in '+PPUFn);