diff --git a/libspeex/resample.c b/libspeex/resample.c index 4403f78..48ffcef 100644 --- a/libspeex/resample.c +++ b/libspeex/resample.c @@ -561,10 +561,10 @@ static void update_filter(SpeexResamplerState *st) } for (i=0;iden_rate;i++) { - spx_uint32_t j; + spx_int32_t j; for (j=0;jfilt_len;j++) { - st->sinc_table[i*st->filt_len+j] = sinc(st->cutoff,((j-st->filt_len/2+1)-((float)i)/st->den_rate), st->filt_len, quality_map[st->quality].window_func); + st->sinc_table[i*st->filt_len+j] = sinc(st->cutoff,((j-(spx_int32_t)st->filt_len/2+1)-((float)i)/st->den_rate), st->filt_len, quality_map[st->quality].window_func); } } #ifdef FIXED_POINT