Browse Source

* fix from Pavel V. Ozersk to accept multiple dimensions for setlength
and dynamical arrays

Jonas Maebe 24 years ago
parent
commit
b33cb43da4
1 changed files with 6 additions and 2 deletions
  1. 6 2
      compiler/ninl.pas

+ 6 - 2
compiler/ninl.pas

@@ -1537,7 +1537,7 @@ implementation
 
 
                         { only dynamic arrays accept more dimensions }
                         { only dynamic arrays accept more dimensions }
                         if (counter>1) and
                         if (counter>1) and
-                          (not(is_dynamic_array(left.resulttype.def))) then
+                          (not(is_dynamic_array(ppn.left.resulttype.def))) then
                           CGMessage(type_e_mismatch);
                           CGMessage(type_e_mismatch);
 
 
                        { convert shortstrings to openstring parameters }
                        { convert shortstrings to openstring parameters }
@@ -2251,7 +2251,11 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.59  2001-09-17 21:29:12  peter
+  Revision 1.60  2001-09-24 11:35:55  jonas
+    * fix from Pavel V. Ozersk to accept multiple dimensions for setlength
+      and dynamical arrays
+
+  Revision 1.59  2001/09/17 21:29:12  peter
     * merged netbsd, fpu-overflow from fixes branch
     * merged netbsd, fpu-overflow from fixes branch
 
 
   Revision 1.58  2001/09/05 15:19:43  jonas
   Revision 1.58  2001/09/05 15:19:43  jonas