getexpress(), transform loop

This commit is contained in:
rlar 2017-11-18 12:28:56 +01:00
parent 1df1e69f5d
commit 86ef4b8cb1
1 changed files with 3 additions and 7 deletions

View File

@ -1385,12 +1385,8 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
if (c == '(') {
/* sub-formula */
int level = 1;
do
{
p++;
if (p >= ls_ptr)
break;
for (; p < ls_ptr; p++) {
d = *p;
@ -1401,7 +1397,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
if (level <= 0)
break;
} while (1);
}
}
} while (!strchr(",;)}", c)); /* legal separators */