diff options
author | Gregory Maxwell <greg@xiph.org> | 2011-10-03 22:04:32 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-03 22:08:28 +0400 |
commit | 4a7c9859cbea913e2d024d523cc10f2bd955d540 (patch) | |
tree | aeec8eb8b098349a7b1ed3f226af9cc32d53cc49 /silk/NSQ.c | |
parent | 1e0805d74f440adbf5829c8a8179fc30a24c5746 (diff) |
Correct C99 undefined behavior in silk/NSQ.c, parallel change to 1ee139bc.
Diffstat (limited to 'silk/NSQ.c')
-rw-r--r-- | silk/NSQ.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ); |