plug-ins: fix some more cast of different size warnings.
Use GINT_TO_POINTER() and GPOINTER_TO_INT() on GList functions.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user