Browse Source

* dynamic arrays have size OS_ADDR

peter 22 years ago
parent
commit
26f160a541
1 changed files with 10 additions and 2 deletions
  1. 10 2
      compiler/cgbase.pas

+ 10 - 2
compiler/cgbase.pas

@@ -573,7 +573,12 @@ implementation
               if not is_special_array(def) then
               if not is_special_array(def) then
                 result := int_cgsize(def.size)
                 result := int_cgsize(def.size)
               else
               else
-                result := OS_NO;
+                begin
+                  if is_dynamic_array(def) then
+                    result := OS_ADDR
+                  else
+                    result := OS_NO;
+                end;
             end;
             end;
           else
           else
             begin
             begin
@@ -646,7 +651,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.36  2003-01-08 18:43:56  daniel
+  Revision 1.37  2003-03-20 17:51:45  peter
+    * dynamic arrays have size OS_ADDR
+
+  Revision 1.36  2003/01/08 18:43:56  daniel
    * Tregister changed into a record
    * Tregister changed into a record
 
 
   Revision 1.35  2003/01/01 21:04:48  peter
   Revision 1.35  2003/01/01 21:04:48  peter