silk_LIMIT_32() should return an opus_int32 (not opus_int)
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 30 May 2017 18:26:38 +0000 (14:26 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 30 May 2017 18:26:38 +0000 (14:26 -0400)
Thanks to petrufm for pointing that out:
https://github.com/xiph/opus/issues/35

silk/MacroCount.h

index 54dbdbd..78100ff 100644 (file)
@@ -691,7 +691,7 @@ return(ret);
 
 
 #undef silk_LIMIT_32
-static OPUS_INLINE opus_int silk_LIMIT_32(opus_int32 a, opus_int32 limit1, opus_int32 limit2)
+static OPUS_INLINE opus_int32 silk_LIMIT_32(opus_int32 a, opus_int32 limit1, opus_int32 limit2)
 {
     opus_int32 ret;
     ops_count += 6;