From 69a07550d170396cb38f64b02ac7ac0ac97a62b3 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Thu, 29 Sep 2016 10:29:13 -0400 Subject: [PATCH] fix #120: [struct float foo;] freezes Pd --- pd/src/g_template.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pd/src/g_template.c b/pd/src/g_template.c index adfd27a07..e0f095b2d 100644 --- a/pd/src/g_template.c +++ b/pd/src/g_template.c @@ -730,7 +730,7 @@ int gtemplate_cancreate(t_symbol *templatename, int argc, t_atom *argv) } else { - error("error: struct: bad array field arguments"); + error("struct: bad array field arguments"); return 0; } } @@ -743,14 +743,19 @@ int gtemplate_cancreate(t_symbol *templatename, int argc, t_atom *argv) } else { - error("error: struct: bad canvas field arguments"); + error("struct: bad canvas field arguments"); return 0; } } + else + { + error("struct: bad field type"); + return 0; + } } if (argc) { - error("error: struct: extra argument"); + error("struct: extra argument"); return 0; } return 1; -- GitLab