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:
Jehan 2020-04-13 23:18:19 +02:00
parent b71754f2a7
commit fddaa77218
1 changed files with 1 additions and 1 deletions

View File

@ -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 */