Support for Intel IPP FFT
[speexdsp.git] / regression-fixes / 1-resampler_unsigned_fix.patch
1 diff --git a/libspeex/resample.c b/libspeex/resample.c
2 index 4403f78..48ffcef 100644
3 --- a/libspeex/resample.c
4 +++ b/libspeex/resample.c
5 @@ -561,10 +561,10 @@ static void update_filter(SpeexResamplerState *st)
6        }
7        for (i=0;i<st->den_rate;i++)
8        {
9 -         spx_uint32_t j;
10 +         spx_int32_t j;
11           for (j=0;j<st->filt_len;j++)
12           {
13 -            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);
14 +            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);
15           }
16        }
17  #ifdef FIXED_POINT