Commit d8c01641 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

input: fix potential signed overflow

parent 057796c1
......@@ -2020,7 +2020,7 @@ static bool Control( input_thread_t *p_input,
case INPUT_CONTROL_SET_RATE:
{
/* Get rate and direction */
int i_rate = abs( val.i_int );
long long i_rate = llabs( val.i_int );
int i_rate_sign = val.i_int < 0 ? -1 : 1;
/* Check rate bound */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment