Browse Source

getword(), (s <= x) --> (s - 1 < x)

pre-master-46
rlar 10 years ago
parent
commit
68b0be8caa
  1. 2
      src/frontend/numparam/xpressn.c

2
src/frontend/numparam/xpressn.c

@ -1326,7 +1326,7 @@ getword(const char *s, const char * const s_end, SPICE_DSTRINGPTR tstr_p)
spice_dstring_reinit(tstr_p);
while ((s <= s_end) && (alfa(s[-1]) || isdigit_c(s[-1]))) {
while ((s - 1 < s_end) && (alfa(s[-1]) || isdigit_c(s[-1]))) {
cadd(tstr_p, toupper_c(s[-1]));
s++;
}

Loading…
Cancel
Save