diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-05-30 03:04:19 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-05-30 03:04:19 +0000 |
commit | 05607e31243e5e85a3801d4513192bb1f2150b14 (patch) | |
tree | 0f810a621cb9967e1e53b349410b0d07be0cea13 /pd/src/x_connective.c | |
parent | 47729b52cb85e8a52bf2e6bbf8ee9a810ed331e1 (diff) |
Remembered to update all the edited files. Should now be in sync... will
have to test it though.
svn path=/trunk/; revision=3092
Diffstat (limited to 'pd/src/x_connective.c')
-rw-r--r-- | pd/src/x_connective.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/pd/src/x_connective.c b/pd/src/x_connective.c index 7e6dcdd8..3d62b319 100644 --- a/pd/src/x_connective.c +++ b/pd/src/x_connective.c @@ -971,24 +971,17 @@ static void trigger_list(t_trigger *x, t_symbol *s, int argc, t_atom *argv) { t_triggerout *u; int i; - t_atom at; - if (!argc) - { - argc = 1; - SETFLOAT(&at, 0); - argv = &at; - } for (i = x->x_n, u = x->x_vec + i; u--, i--;) { if (u->u_type == TR_FLOAT) - outlet_float(u->u_outlet, atom_getfloat(argv)); + outlet_float(u->u_outlet, (argc ? atom_getfloat(argv) : 0)); else if (u->u_type == TR_BANG) outlet_bang(u->u_outlet); else if (u->u_type == TR_SYMBOL) - outlet_symbol(u->u_outlet, atom_getsymbol(argv)); + outlet_symbol(u->u_outlet, (argc ? atom_getsymbol(argv) : 0)); else if (u->u_type == TR_POINTER) { - if (argv->a_type != TR_POINTER) + if (!argc || argv->a_type != TR_POINTER) pd_error(x, "unpack: bad pointer"); else outlet_pointer(u->u_outlet, argv->a_w.w_gpointer); } |