From c3facda138c853a4263cdb8e2499b3d52166d43a Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Thu, 19 Mar 2015 22:44:43 -0400 Subject: [PATCH] [runtime] Fix the isinst_with_cache wrapper on 64 bit platforms. --- 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 6eb497040b9..2fcd0a282fe 100644 --- a/mono/metadata/marshal.c +++ b/mono/metadata/marshal.c @@ -8142,7 +8142,7 @@ mono_marshal_get_isinst_with_cache (void) mono_mb_emit_ldloc (mb, 1); mono_mb_emit_byte (mb, CEE_LDC_I4); mono_mb_emit_i4 (mb, ~0x1); - mono_mb_emit_byte (mb, CEE_CONV_U); + mono_mb_emit_byte (mb, CEE_CONV_I); mono_mb_emit_byte (mb, CEE_AND); mono_mb_emit_ldloc (mb, 0); /*if ((cached_vtable & ~0x1)== obj_vtable)*/ -- 2.25.1