Bug correction in extern_C example
This commit is contained in:
parent
dcfcc0f59c
commit
f2c4507ea4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue