Commit cebf5ed4 authored by Chun-wei Fan's avatar Chun-wei Fan

testsuite/gtk/filterlistmodel.c: Avoid GCCism

Pointer arithmetic on gpointers (void *) is a GCCism, so avoid that by
being more explicit with things.
parent 1ca90600
Pipeline #34760 passed with stages
in 34 minutes and 57 seconds
......@@ -180,14 +180,14 @@ static gboolean
is_near (gpointer item,
gpointer data)
{
return ABS (g_object_get_qdata (item, number_quark) - data) <= 2;
return ABS (GPOINTER_TO_INT (g_object_get_qdata (item, number_quark)) - GPOINTER_TO_INT (data)) <= 2;
}
static gboolean
is_not_near (gpointer item,
gpointer data)
{
return ABS (g_object_get_qdata (item, number_quark) - data) > 2;
return ABS (GPOINTER_TO_INT (g_object_get_qdata (item, number_quark)) - GPOINTER_TO_INT (data)) > 2;
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment