mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
tests: Use GPOINTER_TO_SIZE() instead of just casting to guint
a) gcc doesn't like this ("Cast to pointer of different size) b) It compares only half of the pointer
This commit is contained in:
parent
284ea16b9d
commit
dd1d1b3510
@ -115,7 +115,7 @@ test_properties (void)
|
|||||||
gpointer data_fun = g_memory_output_stream_get_data (G_MEMORY_OUTPUT_STREAM (mo));
|
gpointer data_fun = g_memory_output_stream_get_data (G_MEMORY_OUTPUT_STREAM (mo));
|
||||||
gpointer data_prop;
|
gpointer data_prop;
|
||||||
g_object_get (mo, "data", &data_prop, NULL);
|
g_object_get (mo, "data", &data_prop, NULL);
|
||||||
g_assert_cmphex ((guint) data_fun, ==, (guint) data_prop);
|
g_assert_cmphex (GPOINTER_TO_SIZE (data_fun), ==, GPOINTER_TO_SIZE (data_prop));
|
||||||
|
|
||||||
g_object_unref (o);
|
g_object_unref (o);
|
||||||
g_object_unref (mo);
|
g_object_unref (mo);
|
||||||
|
Loading…
Reference in New Issue
Block a user