Fix OS-X compiler warning

rdo.c:475:25: warning: absolute value function 'abs' given an argument of type 'int64_t' (aka 'long long') but has parameter
       of type 'int' which may cause truncation of value [-Wabsolute-value]
         current.cost = -abs(quant_cost_in_bits) + (bits << PRECISION_INC);
                         ^
rdo.c:475:25: note: use function 'llabs' instead
         current.cost = -abs(quant_cost_in_bits) + (bits << PRECISION_INC);
This commit is contained in:
Ari Koivula 2017-02-01 18:09:17 +02:00
parent c7d536bbcd
commit 4ceda1908b

View file

@ -472,7 +472,7 @@ void kvz_rdoq_sign_hiding(
// Add sign bit, other bits and sig_coeff goes to one.
int bits = CTX_FRAC_ONE_BIT + sh_rates->inc[current.pos] + sh_rates->sig_coeff_inc[current.pos];
current.cost = -abs(quant_cost_in_bits) + (bits << PRECISION_INC);
current.cost = -llabs(quant_cost_in_bits) + (bits << PRECISION_INC);
current.change = 1;
if (coeff_scan < first_nz_scan) {