diff --git a/src/G/GObject.cpp b/src/G/GObject.cpp index 78a9dd8..f04a952 100644 --- a/src/G/GObject.cpp +++ b/src/G/GObject.cpp @@ -378,7 +378,8 @@ Php::Value GObject_::get_data(Php::Parameters& parameters) gpointer value = g_object_get_data(G_OBJECT(instance), key); - return (gchar)value; + // this will return the pointer, so if not a natural type, it's will crash + return value; }