src/audio/SDL_audiocvt.c
changeset 10926 97c829825e0e
parent 10925 4de9d54bbc87
child 11096 819384789a7a
     1.1 --- a/src/audio/SDL_audiocvt.c	Thu Mar 02 13:33:04 2017 -0500
     1.2 +++ b/src/audio/SDL_audiocvt.c	Fri Mar 03 16:38:17 2017 -0500
     1.3 @@ -1038,9 +1038,8 @@
     1.4      const Sint16 *inbuf = (const Sint16 *) _inbuf;
     1.5      Sint16 *outbuf = (Sint16 *) _outbuf;
     1.6      SDL_AudioStreamResamplerState *state = (SDL_AudioStreamResamplerState*)stream->resampler_state;
     1.7 -    const int chans = (int)stream->pre_resample_channels;
     1.8  
     1.9 -    SDL_assert(chans <= SDL_arraysize(state->resampler_state.si16));
    1.10 +    SDL_assert(((int)stream->pre_resample_channels) <= SDL_arraysize(state->resampler_state.si16));
    1.11  
    1.12      if (!state->resampler_seeded) {
    1.13          state->resampler_state.si16[0] = inbuf[0];