(mono_marshal_get_native_wrapper): support boolean
authorDietmar Maurer <dietmar@mono-cvs.ximian.com>
Thu, 11 Jul 2002 16:04:18 +0000 (16:04 -0000)
committerDietmar Maurer <dietmar@mono-cvs.ximian.com>
Thu, 11 Jul 2002 16:04:18 +0000 (16:04 -0000)
svn path=/trunk/mono/; revision=5704

mono/metadata/ChangeLog
mono/metadata/marshal.c

index 1c3caa56ffb66c5453e0d9b05a627f07e5974a7c..1e73ea88ed7bd6446d9a6265f7821805e2745152 100644 (file)
@@ -2,6 +2,7 @@
 
        * marshal.c (mono_marshal_get_native_wrapper): support BOOLEAN
        (mono_marshal_get_native_wrapper): make it comp. with the old code
+       (mono_marshal_get_native_wrapper): support boolean
 
 2002-06-25  Dietmar Maurer  <dietmar@ximian.com>
 
index fea0601b58ff3267b636ec2b08907d81bbc10f7c..52a184573c0f4d81cb79a8fe1f69f8ca20cbc91c 100644 (file)
@@ -1330,6 +1330,9 @@ mono_marshal_get_native_wrapper (MonoMethod *method)
                }
 
                switch (t->type) {
+               case MONO_TYPE_BOOLEAN:
+                       mono_mb_emit_ldarg (mb, argnum);
+                       break;
                case MONO_TYPE_I1:
                case MONO_TYPE_U1:
                case MONO_TYPE_I2:
@@ -1365,7 +1368,6 @@ mono_marshal_get_native_wrapper (MonoMethod *method)
                case MONO_TYPE_OBJECT:
                        mono_mb_emit_ldloc (mb, tmp_locals [i]);
                        break;
-               case MONO_TYPE_BOOLEAN:
                case MONO_TYPE_CHAR:
                case MONO_TYPE_ARRAY:
                case MONO_TYPE_SZARRAY: