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:
Benjamin Otte 2016-02-07 20:14:02 +01:00 committed by Benjamin Otte
parent 9efb275a13
commit f9c2982ddc

View File

@ -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))