Commit 0567bb2e authored by Jehan's avatar Jehan

plug-ins: fix some more cast of different size warnings.

Use GINT_TO_POINTER() and GPOINTER_TO_INT() on GList functions.
parent a2c92c57
Pipeline #117240 passed with stages
in 17 minutes and 32 seconds
......@@ -205,7 +205,7 @@ choose_best_brush (ppm_t *p, ppm_t *a, int tx, int ty,
{
best = i;
bestdev = dev;
brlist = g_list_append (brlist, (void *)i);
brlist = g_list_append (brlist, GINT_TO_POINTER (i));
}
if (dev < runningvals.devthresh)
break;
......@@ -218,7 +218,7 @@ choose_best_brush (ppm_t *p, ppm_t *a, int tx, int ty,
}
i = g_rand_int_range (random_generator, 0, g_list_length (brlist));
best = (long)((g_list_nth (brlist,i))->data);
best = GPOINTER_TO_INT ((g_list_nth (brlist,i))->data);
g_list_free (brlist);
return best;
......
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