Browse Source

* restype wasn't copied for some constant nodetypes in getcopy

Jonas Maebe 24 years ago
parent
commit
820836e42a
1 changed files with 7 additions and 1 deletions
  1. 7 1
      compiler/ncon.pas

+ 7 - 1
compiler/ncon.pas

@@ -359,6 +359,7 @@ implementation
       begin
       begin
          n:=tordconstnode(inherited getcopy);
          n:=tordconstnode(inherited getcopy);
          n.value:=value;
          n.value:=value;
+         n.restype := restype;
          getcopy:=n;
          getcopy:=n;
       end;
       end;
 
 
@@ -402,6 +403,7 @@ implementation
       begin
       begin
          n:=tpointerconstnode(inherited getcopy);
          n:=tpointerconstnode(inherited getcopy);
          n.value:=value;
          n.value:=value;
+         n.restype := restype;
          getcopy:=n;
          getcopy:=n;
       end;
       end;
 
 
@@ -591,6 +593,7 @@ implementation
            end
            end
          else
          else
            n.value_set:=nil;
            n.value_set:=nil;
+         n.restype := restype;
          n.lab_set:=lab_set;
          n.lab_set:=lab_set;
          getcopy:=n;
          getcopy:=n;
       end;
       end;
@@ -657,7 +660,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.19  2001-07-08 21:00:15  peter
+  Revision 1.20  2001-08-06 10:18:39  jonas
+    * restype wasn't copied for some constant nodetypes in getcopy
+
+  Revision 1.19  2001/07/08 21:00:15  peter
     * various widestring updates, it works now mostly without charset
     * various widestring updates, it works now mostly without charset
       mapping supported
       mapping supported