153a5a1b3Sopenharmony_cidiff --git a/libspeex/resample.c b/libspeex/resample.c
253a5a1b3Sopenharmony_ciindex 4403f78..48ffcef 100644
353a5a1b3Sopenharmony_ci--- a/libspeex/resample.c
453a5a1b3Sopenharmony_ci+++ b/libspeex/resample.c
553a5a1b3Sopenharmony_ci@@ -561,10 +561,10 @@ static void update_filter(SpeexResamplerState *st)
653a5a1b3Sopenharmony_ci       }
753a5a1b3Sopenharmony_ci       for (i=0;i<st->den_rate;i++)
853a5a1b3Sopenharmony_ci       {
953a5a1b3Sopenharmony_ci-         spx_uint32_t j;
1053a5a1b3Sopenharmony_ci+         spx_int32_t j;
1153a5a1b3Sopenharmony_ci          for (j=0;j<st->filt_len;j++)
1253a5a1b3Sopenharmony_ci          {
1353a5a1b3Sopenharmony_ci-            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);
1453a5a1b3Sopenharmony_ci+            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);
1553a5a1b3Sopenharmony_ci          }
1653a5a1b3Sopenharmony_ci       }
1753a5a1b3Sopenharmony_ci #ifdef FIXED_POINT
18