Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix [route] rejected output for bang input with float arguments #1680

Merged
merged 3 commits into from May 30, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/x_connective.c
Expand Up @@ -539,7 +539,8 @@ static void route_list(t_route *x, t_symbol *sel, int argc, t_atom *argv)
if (x->x_type == A_FLOAT)
{
t_float f;
if (!argc) return;
if (!argc)
goto rejected;;
if (argv->a_type != A_FLOAT)
goto rejected;
f = atom_getfloat(argv);
Expand Down Expand Up @@ -615,6 +616,8 @@ static void route_list(t_route *x, t_symbol *sel, int argc, t_atom *argv)
}
}
rejected:
if(argc == 0)
outlet_bang(x->x_rejectout);
Spacechild1 marked this conversation as resolved.
Show resolved Hide resolved
outlet_list(x->x_rejectout, 0, argc, argv);
}

Expand Down