shithub: opus

Download patch

ref: 7a455d4ef5e07007b524dfc0e79ae64befffb103
parent: b30dd9e1bf847b8b72fdbe4b91ea35bfbf810e47
author: Jean-Marc Valin <[email protected]>
date: Tue Feb 26 18:59:54 EST 2008

Another 16-bit fix.

--- a/libcelt/rangeenc.c
+++ b/libcelt/rangeenc.c
@@ -123,11 +123,11 @@
      of trailing zeros, and write that to the stream.
     This is guaranteed to yield the smallest possible encoding.*/
   if(_this->low){
-    unsigned end;
+    ec_uint32 end;
     end=EC_CODE_TOP;
     /*Ensure that the end value is in the range.*/
     if(end-_this->low>=_this->rng){
-      unsigned msk;
+      ec_uint32 msk;
       msk=EC_CODE_TOP-1;
       do{
         msk>>=1;