Fixed rsqrt testcase for float
[opus.git] / libcelt / entenc.c
index 1ff0760..7859f63 100644 (file)
@@ -70,11 +70,11 @@ void ec_enc_bits(ec_enc *_this,ec_uint32 _fl,int _ftb){
   while(_ftb>EC_UNIT_BITS){
     _ftb-=EC_UNIT_BITS;
     fl=(unsigned)(_fl>>_ftb)&EC_UNIT_MASK;
-    ec_encode(_this,fl,fl+1,EC_UNIT_MASK+1);
+    ec_encode_bin(_this,fl,fl+1,EC_UNIT_BITS);
   }
   ft=1<<_ftb;
   fl=(unsigned)_fl&ft-1;
-  ec_encode(_this,fl,fl+1,ft);
+  ec_encode_bin(_this,fl,fl+1,_ftb);
 }
 
 void ec_enc_bits64(ec_enc *_this,ec_uint64 _fl,int _ftb){