Browse Source

xpressn.c, fetchid(), #9/15 reorder

pre-master-46
rlar 11 years ago
parent
commit
16b53e3784
  1. 7
      src/frontend/numparam/xpressn.c

7
src/frontend/numparam/xpressn.c

@ -712,10 +712,11 @@ fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
do do
{ {
c = *s++;
if (s > s_end)
if (s >= s_end)
break; break;
c = *s++;
// facts: upcase('\0') == '\0' // facts: upcase('\0') == '\0'
// facts: alfanum('\0') == false // facts: alfanum('\0') == false
// facts: alfanum(upcase(x)) == alfanum(x) // facts: alfanum(upcase(x)) == alfanum(x)
@ -729,7 +730,7 @@ fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
} while (1); } while (1);
return s - 1; /* return updated s */
return s;
} }

Loading…
Cancel
Save