mirror of https://github.com/GNOME/gimp.git
plug-ins: fix some build warning.
Fixes: > warning: using integer absolute value function ‘abs’ when argument is of floating point type ‘double’ [-Wabsolute-value]
This commit is contained in:
parent
ea0cc27c01
commit
b71754f2a7
|
@ -2079,9 +2079,9 @@ bender_graph_events (GtkWidget *widget,
|
|||
for (i = 0; i < 17; i++)
|
||||
{
|
||||
if (cd->points[cd->outline][i][0] != -1)
|
||||
if (abs (x - (cd->points[cd->outline][i][0] * 255.0)) < distance)
|
||||
if (abs ((int) (x - (cd->points[cd->outline][i][0] * 255.0))) < distance)
|
||||
{
|
||||
distance = abs (x - (cd->points[cd->outline][i][0] * 255.0));
|
||||
distance = abs ((int) (x - (cd->points[cd->outline][i][0] * 255.0)));
|
||||
closest_point = i;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue