Browse Source

getexpress(), transform `<' etc comparisons

pre-master-46
rlar 8 years ago
parent
commit
f2013088a6
  1. 8
      src/frontend/numparam/xpressn.c

8
src/frontend/numparam/xpressn.c

@ -1365,7 +1365,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
do
p++;
while ((p <= ls_ptr - 1) && (*p <= ' '));
while ((p < ls_ptr) && (*p <= ' '));
} else {
@ -1378,7 +1378,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
{
p++;
if (p > ls_ptr - 1)
if (p >= ls_ptr)
c = ';';
else
c = *p;
@ -1390,7 +1390,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
{
p++;
if (p > ls_ptr - 1)
if (p >= ls_ptr)
d = '\0';
else
d = *p;
@ -1400,7 +1400,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
else if (d == ')')
level--;
} while ((p <= ls_ptr - 1) && !((d == ')') && (level <= 0)));
} while ((p < ls_ptr) && !((d == ')') && (level <= 0)));
}
} while (!strchr(",;)}", c)); /* legal separators */

Loading…
Cancel
Save