Commit 4a7c9859 authored by Gregory Maxwell's avatar Gregory Maxwell Committed by Jean-Marc Valin
Browse files

Correct C99 undefined behavior in silk/NSQ.c, parallel change to 1ee139bc.

parent 1e0805d7
......@@ -292,7 +292,7 @@ static inline void silk_noise_shape_quantizer(
/* Flip sign depending on dither */
r_Q10 = r_Q10 ^ dither;
r_Q10 = silk_LIMIT_32( r_Q10, -31 << 10, 30 << 10 );
r_Q10 = silk_LIMIT_32( r_Q10, -(31 << 10), 30 << 10 );
/* Find two quantization level candidates and measure their rate-distortion */
q1_Q10 = silk_SUB32( r_Q10, offset_Q10 );
......
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