diff options
author | Paolo Molaro <lupus@oddwiz.org> | 2004-07-27 16:55:01 +0400 |
---|---|---|
committer | Paolo Molaro <lupus@oddwiz.org> | 2004-07-27 16:55:01 +0400 |
commit | f363291341a20aab441d82517c554c68d8972cdf (patch) | |
tree | b69edee443e600724d50be5e5111673348665134 | |
parent | dd866d68820e0f66046256bb5d3f84e3988a8be0 (diff) |
Tue Jul 27 15:47:17 CEST 2004 Paolo Molaro <lupus@ximian.com>
* class.c: fix class loads for pointer types (typeof(int) !=
typeof(int*)).
svn path=/branches/mono-1-0/mono/; revision=31513
-rw-r--r-- | mono/metadata/ChangeLog | 5 | ||||
-rw-r--r-- | mono/metadata/class.c | 2 | ||||
-rw-r--r-- | mono/tests/Makefile.am | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/mono/metadata/ChangeLog b/mono/metadata/ChangeLog index dbf991f4529..ebb29b87744 100644 --- a/mono/metadata/ChangeLog +++ b/mono/metadata/ChangeLog @@ -1,3 +1,8 @@ +Tue Jul 27 15:47:17 CEST 2004 Paolo Molaro <lupus@ximian.com> + + * class.c: fix class loads for pointer types (typeof(int) != + typeof(int*)). + 2004-07-24 Martin Baulig <martin@ximian.com> * reflection.c (mono_image_get_type_info): Only write a class diff --git a/mono/metadata/class.c b/mono/metadata/class.c index 7f434b5c734..2814e47d255 100644 --- a/mono/metadata/class.c +++ b/mono/metadata/class.c @@ -2124,7 +2124,7 @@ mono_class_create_from_typespec (MonoImage *image, guint32 type_spec, class = mono_array_class_get (type->data.klass, 1); break; case MONO_TYPE_PTR: - class = mono_class_from_mono_type (type->data.type); + class = mono_ptr_class_get (type->data.type); break; case MONO_TYPE_GENERICINST: g_assert (type->data.generic_inst->klass); diff --git a/mono/tests/Makefile.am b/mono/tests/Makefile.am index 23cc36cc3cc..2ac008e74c4 100644 --- a/mono/tests/Makefile.am +++ b/mono/tests/Makefile.am @@ -41,6 +41,7 @@ TEST_CS_SRC= \ exception16.cs \ struct.cs \ valuetype-gettype.cs \ + typeof-ptr.cs \ static-constructor.cs \ pinvoke.cs \ pinvoke1.cs \ |