From f2c4507ea426e94fb0f57a3434bf926be64bc7c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwena=C3=ABl=20Delaval?= Date: Fri, 25 Jan 2013 15:41:34 +0100 Subject: [PATCH] Bug correction in extern_C example --- examples/extern_C/mathext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/extern_C/mathext.c b/examples/extern_C/mathext.c index 4e05bdf..91495b1 100644 --- a/examples/extern_C/mathext.c +++ b/examples/extern_C/mathext.c @@ -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); }