* object.c: mono_array_new_full workaround mono_array_class_get
problem.
svn path=/trunk/mono/; revision=3961
+2002-04-21 Dan Lewis <dihlewis@yahoo.co.uk>
+
+ * object.c: mono_array_new_full workaround mono_array_class_get
+ problem.
+
2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
* string-icalls.c (mono_string_InternalRemove): Fixed overwrite bug.
at->rank = rank;
/* FIXME: complete.... */
} else {
+ /* FIXME: this is not correct. the lbound could be >0 */
class->byval_arg.type = MONO_TYPE_SZARRAY;
class->byval_arg.data.type = &eclass->byval_arg;
}
byte_len = mono_array_element_size (array_class);
len = 1;
- if (array_class->this_arg.type == MONO_TYPE_SZARRAY) {
+ if (array_class->rank == 1 && lower_bounds [0] == 0) {
bounds = NULL;
len = lengths [0];
} else {