Browse code

c/f:core:g726: using unsigned int for loop counters

Stefan Sayer authored on 23/02/2014 00:13:55
Showing 1 changed files
... ...
@@ -151,7 +151,7 @@ static unsigned int g726_40_samples2bytes(long h_codec, unsigned int num_samples
151 151
 
152 152
 static int Pcm16_2_G726_16( unsigned char* out_buf, unsigned char* in_buf, unsigned int size,
153 153
 			    unsigned int channels, unsigned int rate, long h_codec ) {
154
-  int i, j;  
154
+  unsigned int i, j;  
155 155
   if (!h_codec)
156 156
     return -1;
157 157
 
... ...
@@ -177,7 +177,7 @@ static int Pcm16_2_G726_16( unsigned char* out_buf, unsigned char* in_buf, unsig
177 177
 
178 178
 static int G726_16_2_Pcm16(unsigned char* out_buf, unsigned char* in_buf, unsigned int size,
179 179
 			   unsigned int channels, unsigned int rate, long h_codec ) {
180
-  int i, j;
180
+  unsigned int i, j;
181 181
   if (!h_codec)
182 182
     return -1;
183 183
 
... ...
@@ -202,7 +202,7 @@ static int G726_16_2_Pcm16(unsigned char* out_buf, unsigned char* in_buf, unsign
202 202
 
203 203
 static int Pcm16_2_G726_24( unsigned char* out_buf, unsigned char* in_buf, unsigned int size,
204 204
 			    unsigned int channels, unsigned int rate, long h_codec ) {
205
-  int i, j;  
205
+  unsigned int i, j;  
206 206
   if (!h_codec)
207 207
     return -1;
208 208
   short* sample_buf = (short*)in_buf;
... ...
@@ -229,7 +229,7 @@ static int Pcm16_2_G726_24( unsigned char* out_buf, unsigned char* in_buf, unsig
229 229
 
230 230
 static int G726_24_2_Pcm16( unsigned char* out_buf, unsigned char* in_buf, unsigned int size,
231 231
 			    unsigned int channels, unsigned int rate, long h_codec ) {
232
-  int i, j;
232
+  unsigned int i, j;
233 233
   if (!h_codec)
234 234
     return -1;
235 235
 
... ...
@@ -258,7 +258,7 @@ static int G726_24_2_Pcm16( unsigned char* out_buf, unsigned char* in_buf, unsig
258 258
 
259 259
 static int Pcm16_2_G726_32( unsigned char* out_buf, unsigned char* in_buf, unsigned int size,
260 260
 			    unsigned int channels, unsigned int rate, long h_codec ) {
261
-  int i, j;  
261
+  unsigned int i, j;  
262 262
   if (!h_codec)
263 263
     return -1;
264 264
   short* sample_buf = (short*)in_buf;
... ...
@@ -284,7 +284,7 @@ static int Pcm16_2_G726_32( unsigned char* out_buf, unsigned char* in_buf, unsig
284 284
 static int G726_32_2_Pcm16( unsigned char* out_buf, unsigned char* in_buf, unsigned int size,
285 285
 			    unsigned int channels, unsigned int rate, long h_codec ) {
286 286
 
287
-  int i, j;
287
+  unsigned int i, j;
288 288
   if (!h_codec)
289 289
     return -1;
290 290
 
... ...
@@ -310,7 +310,7 @@ static int G726_32_2_Pcm16( unsigned char* out_buf, unsigned char* in_buf, unsig
310 310
 static int Pcm16_2_G726_40( unsigned char* out_buf, unsigned char* in_buf, unsigned int size,
311 311
 			    unsigned int channels, unsigned int rate, long h_codec ) {
312 312
 
313
-  int i, j;  
313
+  unsigned int i, j;  
314 314
   if (!h_codec)
315 315
     return -1;
316 316
   short* sample_buf = (short*)in_buf;
... ...
@@ -340,7 +340,7 @@ static int Pcm16_2_G726_40( unsigned char* out_buf, unsigned char* in_buf, unsig
340 340
 static int G726_40_2_Pcm16( unsigned char* out_buf, unsigned char* in_buf, unsigned int size,
341 341
 			    unsigned int channels, unsigned int rate, long h_codec ) {
342 342
 
343
-  int i, j;
343
+  unsigned int i, j;
344 344
   u_int64_t v;
345 345
   if (!h_codec)
346 346
     return -1;