소스 검색

* varspez shouldn't be part of the crc

git-svn-id: trunk@5058 -
florian 19 년 전
부모
커밋
30ea65a89c
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      compiler/symsym.pas

+ 6 - 1
compiler/symsym.pas

@@ -1575,6 +1575,8 @@ implementation
 
 
 
 
     procedure tparavarsym.ppuwrite(ppufile:tcompilerppufile);
     procedure tparavarsym.ppuwrite(ppufile:tcompilerppufile);
+      var
+        oldintfcrc : boolean;
       begin
       begin
          inherited ppuwrite(ppufile);
          inherited ppuwrite(ppufile);
          ppufile.putword(paranr);
          ppufile.putword(paranr);
@@ -1583,7 +1585,10 @@ implementation
            we write them to the unit file.
            we write them to the unit file.
            This enables constant folding for inline procedures loaded from units
            This enables constant folding for inline procedures loaded from units
          }
          }
-         ppufile.putbyte(ord(vs_readwritten));
+         oldintfcrc:=ppufile.do_crc;
+         ppufile.do_crc:=false;
+         ppufile.putbyte(ord(varstate));
+         ppufile.do_crc:=oldintfcrc;
 
 
          if vo_has_explicit_paraloc in varoptions then
          if vo_has_explicit_paraloc in varoptions then
            begin
            begin