Author: martin
Date: 2005-04-13 07:47:57 -0400 (Wed, 13 Apr 2005)
New Revision: 42914

Modified:
   trunk/mcs/gmcs/ChangeLog
   trunk/mcs/gmcs/attribute.cs
Log:
**** Merged r41316 from MCS ****


Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog    2005-04-13 11:47:05 UTC (rev 42913)
+++ trunk/mcs/gmcs/ChangeLog    2005-04-13 11:47:57 UTC (rev 42914)
@@ -1,3 +1,8 @@
+2005-03-01  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * attribute.cs: Pass -1 to DefineLPArrayInternal if sizeConst or
+       sizeParamIndex is not specified.
+
 2005-03-01  Marek Safar  <[EMAIL PROTECTED]>
 
        Fix #73117

Modified: trunk/mcs/gmcs/attribute.cs
===================================================================
--- trunk/mcs/gmcs/attribute.cs 2005-04-13 11:47:05 UTC (rev 42913)
+++ trunk/mcs/gmcs/attribute.cs 2005-04-13 11:47:57 UTC (rev 42914)
@@ -940,8 +940,8 @@
                                
                                        object [] args = new object [3];
                                        args [0] = array_sub_type;
-                                       args [1] = size_const;
-                                       args [2] = size_param_index;
+                                       args [1] = size_const == null ? -1 : 
size_const;
+                                       args [2] = size_param_index == null ? 
-1 : size_param_index;
                                        return (UnmanagedMarshal) 
define_array.Invoke (null, args);
                                }
                                else

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to