2002-09-16 Miguel de Icaza <miguel@ximian.com>
authorMiguel de Icaza <miguel@gnome.org>
Tue, 17 Sep 2002 04:34:26 +0000 (04:34 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 17 Sep 2002 04:34:26 +0000 (04:34 -0000)
* ecore.cs (StandardConversionExists): Sync with the conversion
code: allow anything-* to void* conversions.

svn path=/trunk/mcs/; revision=7551

mcs/mcs/ChangeLog
mcs/mcs/ecore.cs

index c9622edea6212891abceb4f93eb1909e9e220a66..0a63f4ad20a27fa18ffb8906d0d54b80fdcf9504 100755 (executable)
@@ -1,6 +1,9 @@
 2002-09-16  Miguel de Icaza  <miguel@ximian.com>
 
-       * ecore.cs (FindMostSpecificSource): Use an Expression argument
+       * ecore.cs (StandardConversionExists): Sync with the conversion
+       code: allow anything-* to void* conversions.
+
+       (FindMostSpecificSource): Use an Expression argument
        instead of a Type, because we might be handed over a Literal which
        gets a few more implicit conversions that plain types do not.  So
        this information was being lost.
index 83434bc49ba02b84b504cf671da69db77e653717..92a554f7bac5713a65da5db3ad516a3571576c90 100755 (executable)
@@ -1217,6 +1217,9 @@ namespace Mono.CSharp {
                                        return true;
                        }
 
+                       if (target_type == TypeManager.void_ptr_type && expr_type.IsPointer)
+                               return true;
+
                        return false;
                }