getexpress(), transform loop

This commit is contained in:
rlar 2017-11-18 12:34:42 +01:00
parent 92eb2b0437
commit 8a3871a0ef
1 changed files with 4 additions and 10 deletions

View File

@ -1372,16 +1372,11 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
p = xia_ptr - 1;
do
{
char c;
p++;
p++;
for (; p < ls_ptr; p++) {
if (p >= ls_ptr)
break;
c = *p;
char c = *p;
if (c == '(') {
/* sub-formula */
@ -1403,8 +1398,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
if (strchr(",;)}", c)) /* legal separators */
break;
} while (1);
}
tpe = NUPA_REAL;
}