src/audio/SDL_wave.c
changeset 8879 f6e4f24df1ac
parent 8831 9326ec96c132
child 8909 a894224dc538
     1.1 --- a/src/audio/SDL_wave.c	Fri Jun 20 11:01:05 2014 -0300
     1.2 +++ b/src/audio/SDL_wave.c	Fri Jun 20 11:10:16 2014 -0300
     1.3 @@ -121,7 +121,8 @@
     1.4      struct MS_ADPCM_decodestate *state[2];
     1.5      Uint8 *freeable, *encoded, *decoded;
     1.6      Sint32 encoded_len, samplesleft;
     1.7 -    Sint8 nybble, stereo;
     1.8 +    Sint8 nybble;
     1.9 +    Uint8 stereo;
    1.10      Sint16 *coeff[2];
    1.11      Sint32 new_sample;
    1.12  
    1.13 @@ -278,7 +279,8 @@
    1.14      } else if (state->index < 0) {
    1.15          state->index = 0;
    1.16      }
    1.17 -    step = step_table[state->index];
    1.18 +    /* explicit cast to avoid gcc warning about using 'char' as array index */
    1.19 +    step = step_table[(int)state->index];
    1.20      delta = step >> 3;
    1.21      if (nybble & 0x04)
    1.22          delta += step;