* attribute.cs: Pass -1 to DefineLPArrayInternal if sizeConst or
sizeParamIndex is not specified.
svn path=/trunk/mcs/; revision=41316
+2005-03-01 Zoltan Varga <vargaz@freemail.hu>
+
+ * attribute.cs: Pass -1 to DefineLPArrayInternal if sizeConst or
+ sizeParamIndex is not specified.
+
2005-03-01 Marek Safar <marek.safar@seznam.cz>
Fix #73117
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