xpressn.c, fetchid(), #7/15 use fact

This commit is contained in:
rlar 2015-10-10 14:54:54 +02:00
parent 9a69f79feb
commit aa87d90ba9
1 changed files with 1 additions and 2 deletions

View File

@ -720,11 +720,10 @@ fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
// facts: alfanum('\0') == false
// facts: alfanum(upcase(x)) == alfanum(x)
c = upcase(c);
ok = alfanum(c) || c == '.';
if (ok)
cadd(t, c);
cadd(t, upcase(c));
} while (ok);