* class.c (mono_bounded_array_class_get): Fix if statement that caused incorrect
type check on multi-dimensional arrays. Fixes #79000.
svn path=/trunk/mono/; revision=63656
+2006-08-11 Jonathan Chambers <joncham@gmail.com>
+
+ * class.c (mono_bounded_array_class_get): Fix if statement that caused incorrect
+ type check on multi-dimensional arrays. Fixes #79000.
+
2006-08-10 Jonathan Chambers <joncham@gmail.com>
* class.c (mono_class_setup_parent): setup is_com_object during class initialization.
if ((rootlist = list = g_hash_table_lookup (image->array_cache, eclass))) {
for (; list; list = list->next) {
class = list->data;
- if ((class->rank == rank) && (class->byval_arg.type == (bounded ? MONO_TYPE_ARRAY : MONO_TYPE_SZARRAY))) {
+ if ((class->rank == rank) && (class->byval_arg.type == (((rank > 1) || bounded) ? MONO_TYPE_ARRAY : MONO_TYPE_SZARRAY))) {
mono_loader_unlock ();
return class;
}