diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2002-10-21 07:14:55 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2002-10-21 07:14:55 +0000 |
commit | 21dbdef1fcf5169ade95e05aed35ff361f4d3cc2 (patch) | |
tree | ec9cafc525ad1816f7a7968c0499fdd60d7f08b3 /src/ann_som.c | |
parent | 3505bf1cfec70eebcf508b67f3fd8ba55eee4421 (diff) |
fixed the stupid "rule"-bug in ann_som.c
svn path=/trunk/externals/ann/; revision=180
Diffstat (limited to 'src/ann_som.c')
-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) { |