Argument to abs() is actually long, not int, thus use labs().

This commit is contained in:
Carlo Dapor 2017-08-13 20:03:13 +02:00 committed by Lassi Kortela
parent c8cea26d61
commit 85e2a1b458
1 changed files with 1 additions and 1 deletions

View File

@ -1791,7 +1791,7 @@ static value_t apply_cl(uint32_t nargs)
i = GET_INT32(ip); ip+=4; i = GET_INT32(ip); ip+=4;
n = GET_INT32(ip); ip+=4; n = GET_INT32(ip); ip+=4;
s = GET_INT32(ip); ip+=4; s = GET_INT32(ip); ip+=4;
nargs = process_keys(v, i, n, abs(s)-(i+n), bp, nargs, s<0); nargs = process_keys(v, i, n, labs(s)-(i+n), bp, nargs, s<0);
NEXT_OP; NEXT_OP;
#ifndef USE_COMPUTED_GOTO #ifndef USE_COMPUTED_GOTO