瀏覽代碼

+ Fixed nodefault storage specifier and case where stored is explicitly true

git-svn-id: trunk@3860 -
michael 19 年之前
父節點
當前提交
a3c573cf8d
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/pdecvar.pas

+ 4 - 1
compiler/pdecvar.pas

@@ -524,7 +524,10 @@ implementation
                       exclude(p.propoptions,ppo_stored);
                     end;
                   _TRUE:
+                    begin
+                    p.default:=longint($80000000);
                     consume(_TRUE);
+                    end;
                 end;
               end;
            end;
@@ -578,7 +581,7 @@ implementation
            end
          else if try_to_consume(_NODEFAULT) then
            begin
-              p.default:=0;
+              p.default:=longint($80000000);
            end;
          { remove temporary procvardefs }
          readprocdef.free;