[runtime] Fix the isinst_with_cache wrapper on 64 bit platforms.
authorZoltan Varga <vargaz@gmail.com>
Fri, 20 Mar 2015 02:44:43 +0000 (22:44 -0400)
committerZoltan Varga <vargaz@gmail.com>
Fri, 20 Mar 2015 02:44:43 +0000 (22:44 -0400)
mono/metadata/marshal.c

index 6eb497040b9932a2f880bbb4bfd0355dc578e3ab..2fcd0a282feeb416815c9a74299c117a47e834b7 100644 (file)
@@ -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)*/