From 78ff804e064168a84d69560b060762832a7ac55d Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Tue, 12 Oct 2010 15:01:39 +0200 Subject: [PATCH] Load vtable->max_interface_id using LDIND_U2. --- mono/metadata/marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mono/metadata/marshal.c b/mono/metadata/marshal.c index c99407d2765..48f6bc773f7 100644 --- a/mono/metadata/marshal.c +++ b/mono/metadata/marshal.c @@ -9957,7 +9957,7 @@ mono_marshal_get_virtual_stelemref (MonoClass *array_class) mono_mb_emit_ldloc (mb, uiid); mono_mb_emit_ldloc (mb, vtable); mono_mb_emit_ldflda (mb, G_STRUCT_OFFSET (MonoVTable, max_interface_id)); - mono_mb_emit_byte (mb, CEE_LDIND_I); + mono_mb_emit_byte (mb, CEE_LDIND_U2); b2 = mono_mb_emit_branch (mb, CEE_BGT_UN); /* if (!(vt->interface_bitmap [(uiid) >> 3] & (1 << ((uiid)&7)))) */ -- GitLab