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