mirror of https://github.com/GNOME/gimp.git
plug-ins: fix abs() on long int.
Fixes the following bug: > warning: absolute value function ‘abs’ given an argument of type > ‘glong’ {aka ‘long int’} but has parameter of type ‘int’ which may > cause truncation of value [-Wabsolute-value]
This commit is contained in:
parent
b71754f2a7
commit
fddaa77218
|
@ -1955,7 +1955,7 @@ color_error (guchar ref_red, guchar ref_green, guchar ref_blue,
|
|||
cmp_h = (3 * cmp_red + 6 * cmp_green + cmp_blue) / 10;
|
||||
ref_h = (3 * ref_red + 6 * ref_green + ref_blue) / 10;
|
||||
|
||||
fs = abs (ref_h - cmp_h);
|
||||
fs = labs (ref_h - cmp_h);
|
||||
ff = fs * fs;
|
||||
|
||||
/* 2. add Red Color differences */
|
||||
|
|
Loading…
Reference in New Issue