mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
testsuite: No warnings on type conversions please
long is 32bit on win64, so it's int cast to pointer of different size, and gcc doesn't like that.
This commit is contained in:
parent
9efb275a13
commit
f9c2982ddc
@ -187,9 +187,9 @@ value_as_pointer (GValue *value)
|
||||
if (G_VALUE_HOLDS_UINT (value))
|
||||
return GUINT_TO_POINTER(g_value_get_uint (value));
|
||||
if (G_VALUE_HOLDS_LONG (value))
|
||||
return (void*) g_value_get_long (value);
|
||||
return GSIZE_TO_POINTER ((gssize) g_value_get_long (value));
|
||||
if (G_VALUE_HOLDS_ULONG (value))
|
||||
return (void*) g_value_get_ulong (value);
|
||||
return GSIZE_TO_POINTER (g_value_get_ulong (value));
|
||||
if (G_VALUE_HOLDS_FLOAT (value))
|
||||
return (void*) (gssize) g_value_get_float (value);
|
||||
if (G_VALUE_HOLDS_DOUBLE (value))
|
||||
|
Loading…
Reference in New Issue
Block a user