Fixes MSVC warning
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 27 Jun 2013 17:03:33 +0000 (13:03 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 27 Jun 2013 17:03:33 +0000 (13:03 -0400)
celt/cwrs.c

index 029232c..28e6561 100644 (file)
@@ -521,7 +521,7 @@ static void cwrsi(int _n,int _k,opus_uint32 _i,int *_y){
   if(_k)_i-=2*_k-1;
   *_y++=(k0-_k+s)^s;
   /*_n==1*/
   if(_k)_i-=2*_k-1;
   *_y++=(k0-_k+s)^s;
   /*_n==1*/
-  s=-_i;
+  s=-(int)_i;
   *_y=(_k+s)^s;
 }
 
   *_y=(_k+s)^s;
 }