Bug correction in extern_C example

This commit is contained in:
Gwenaël Delaval 2013-01-25 15:41:34 +01:00
parent dcfcc0f59c
commit f2c4507ea4

View file

@ -16,6 +16,6 @@ void st_cos_reset(st_cos_mem *self)
void st_cos_step(float a, st_cos_out *out, st_cos_mem *self)
{
out->o = self->mem[self->i];
self->i = (self->i++) % 100;
self->i = (self->i+1) % 100;
self->mem[self->i] = cos(a);
}