diff options
-rw-r--r-- | src/ann_som.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ann_som.c b/src/ann_som.c index 3247e39..2bd2b4a 100644 --- a/src/ann_som.c +++ b/src/ann_som.c @@ -353,10 +353,10 @@ static void som_rule(t_som *x, t_symbol *s, int argc, t_atom *argv) if (argv->a_type==A_FLOAT) rule=atom_getint(argv); else if (argv->a_type==A_SYMBOL) { - char *name=atom_getsymbol(argv)->s_name; - if (!strcmp(name, "instar") && !strcmp(name, "INSTAR")) rule=INSTAR; - else if (!strcmp(name, "outstar") && !strcmp(name, "OUTSTAR")) rule=OUTSTAR; - else if (!strcmp(name, "kohonen") && !strcmp(name, "KOHONEN")) rule=KOHONEN; + char name=*atom_getsymbol(argv)->s_name; + if (name=='I' || name=='i') rule=INSTAR; + else if (name=='O' || name=='O') rule=OUTSTAR; + else if (name=='K' || name=='k') rule=KOHONEN; } switch (rule) { |