comparison src/audio/SDL_wave.c @ 1612:97d0966f4bf7

Fixed some ultra-pedantic gcc warnings
author Sam Lantinga <slouken@libsdl.org>
date Fri, 24 Mar 2006 06:10:24 +0000
parents dc6b59e925a2
children 14717b52abc0
comparison
equal deleted inserted replaced
1611:ec3466b08f17 1612:97d0966f4bf7
327 static int IMA_ADPCM_decode(Uint8 **audio_buf, Uint32 *audio_len) 327 static int IMA_ADPCM_decode(Uint8 **audio_buf, Uint32 *audio_len)
328 { 328 {
329 struct IMA_ADPCM_decodestate *state; 329 struct IMA_ADPCM_decodestate *state;
330 Uint8 *freeable, *encoded, *decoded; 330 Uint8 *freeable, *encoded, *decoded;
331 Sint32 encoded_len, samplesleft; 331 Sint32 encoded_len, samplesleft;
332 int c, channels; 332 unsigned int c, channels;
333 333
334 /* Check to make sure we have enough variables in the state array */ 334 /* Check to make sure we have enough variables in the state array */
335 channels = IMA_ADPCM_state.wavefmt.channels; 335 channels = IMA_ADPCM_state.wavefmt.channels;
336 if ( channels > SDL_arraysize(IMA_ADPCM_state.state) ) { 336 if ( channels > SDL_arraysize(IMA_ADPCM_state.state) ) {
337 SDL_SetError("IMA ADPCM decoder can only handle %d channels", 337 SDL_SetError("IMA ADPCM decoder can only handle %d channels",