... and g_value_get_gtype(). G_TYPE_GTYPE is a pointer type, so it's
values should use the v_pointer member. This is especially true, because
the value collectors from varargs in gvaluecollector.h use that, too.
This should only cause issues when sizeof(glong) != sizeof(gpointer),
and I'm not aware of any such platform. Maybe win64?
{
g_return_if_fail (G_VALUE_HOLDS_GTYPE (value));
- value->data[0].v_long = v_gtype;
+ value->data[0].v_pointer = GSIZE_TO_POINTER (v_gtype);
}
{
g_return_val_if_fail (G_VALUE_HOLDS_GTYPE (value), 0);
- return value->data[0].v_long;
+ return GPOINTER_TO_SIZE (value->data[0].v_pointer);
}
/**