]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Allow implicit conversion from pointer to GValue
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 28 Jul 2011 06:56:11 +0000 (08:56 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Thu, 28 Jul 2011 06:56:17 +0000 (08:56 +0200)
Fixes bug 654143.

vala/valapointertype.vala

index d7da3d866a83236b485310d31f2ef1bfafcb5910..92345874a5628add17662699a5188413f3305c6f 100644 (file)
@@ -91,6 +91,11 @@ public class Vala.PointerType : DataType {
                        return base_type.compatible (target_type);
                }
 
+               if (target_type.get_type_id () == "G_TYPE_VALUE") {
+                       // allow implicit conversion to GValue
+                       return true;
+               }
+
                return false;
        }