Skip to content

Commit

Permalink
fiz def arg in zl.group
Browse files Browse the repository at this point in the history
closes #639
  • Loading branch information
porres committed May 28, 2024
1 parent dc25f6b commit b1ab078
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cyclone_objects/binaries/control/zl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1461,9 +1461,13 @@ static int zl_modeargfn(t_zl *x){

static void zl_setmodearg(t_zl *x, t_symbol *s, int ac, t_atom *av){
if(zl_intargfn[x->x_mode]){
int i = (!s && ac && av->a_type == A_FLOAT ?
(int)av->a_w.w_float : /* CHECKED silent truncation */
0); /* CHECKED current x->x_modearg not kept */
int i;
if(zl_modesym[x->x_mode] == gensym("group") && !ac)
i = ZL_DEF_SIZE;
else
i = (!s && ac && av->a_type == A_FLOAT ?
(int)av->a_w.w_float : /* CHECKED silent truncation */
0); /* CHECKED current x->x_modearg not kept */
x->x_modearg = (*zl_intargfn[x->x_mode])(x, i);
}
if (zl_anyargfn[x->x_mode])
Expand Down

0 comments on commit b1ab078

Please sign in to comment.