mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Fix -Wsign-compare in fluid_chorus.c
This commit is contained in:
parent
accae4ef82
commit
a7162f1ef1
1 changed files with 4 additions and 3 deletions
|
@ -609,6 +609,7 @@ void
|
|||
fluid_chorus_reset(fluid_chorus_t *chorus)
|
||||
{
|
||||
int i;
|
||||
unsigned int u;
|
||||
|
||||
/* reset delay line */
|
||||
for(i = 0; i < chorus->size; i++)
|
||||
|
@ -617,11 +618,11 @@ fluid_chorus_reset(fluid_chorus_t *chorus)
|
|||
}
|
||||
|
||||
/* reset modulators's allpass filter */
|
||||
for(i = 0; i < FLUID_N_ELEMENTS(chorus->mod); i++)
|
||||
for(u = 0; u < FLUID_N_ELEMENTS(chorus->mod); u++)
|
||||
{
|
||||
/* initializes 1st order All-Pass interpolator members */
|
||||
chorus->mod[i].buffer = 0; /* previous delay sample value */
|
||||
chorus->mod[i].frac_pos_mod = 0; /* fractional position (between consecutives sample) */
|
||||
chorus->mod[u].buffer = 0; /* previous delay sample value */
|
||||
chorus->mod[u].frac_pos_mod = 0; /* fractional position (between consecutives sample) */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue