From d995f30ff0d0dc729557973af5c547c51f8895f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 6 Dec 2019 16:46:55 +0100 Subject: [PATCH] :art: Fixes --- src/lib/modules.c | 4 ++-- tests/UsrUgen/UsrUGen.gw | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/modules.c b/src/lib/modules.c index f96c0b9f..b6eab731 100644 --- a/src/lib/modules.c +++ b/src/lib/modules.c @@ -246,7 +246,7 @@ static MFUN(default_tick) { uu->shred = NULL; } UGEN(o)->module.gen.tick = id_tick; - release(o, shred); +// release(o, shred); } static INSTR(UsrUGenTick) { @@ -280,7 +280,7 @@ static OP_EMIT(opem_usrugen) { static GWION_IMPORT(usrugen) { GWI_OB(gwi_class_ini(gwi, "UsrUGen", "UGen")) gwi_class_xtor(gwi, usrugen_ctor, usrugen_dtor); - GWI_BB(gwi_func_ini(gwi, "void", "default_tick")) + GWI_BB(gwi_func_ini(gwi, "int", "default_tick")) GWI_BB(gwi_func_end(gwi, default_tick, 0)) GWI_BB(gwi_class_end(gwi)) GWI_BB(gwi_oper_ini(gwi, "@function", "UsrUGen", "UsrUGen")) diff --git a/tests/UsrUgen/UsrUGen.gw b/tests/UsrUgen/UsrUGen.gw index 4c1792b0..f7a1f254 100644 --- a/tests/UsrUgen/UsrUGen.gw +++ b/tests/UsrUgen/UsrUGen.gw @@ -26,5 +26,5 @@ samp => now; <<< u.last() >>>; u.default_tick(); -samp => now; +2::samp => now; <<< u.last() >>>; -- 2.43.0