getexpress(), break early
instead of doing nothing and then breaking
This commit is contained in:
parent
8a3871a0ef
commit
4a6c7db226
|
|
@ -1378,6 +1378,9 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
|
|||
|
||||
char c = *p;
|
||||
|
||||
if (strchr(",;)}", c)) /* legal separators */
|
||||
break;
|
||||
|
||||
if (c == '(') {
|
||||
/* sub-formula */
|
||||
int level = 1;
|
||||
|
|
@ -1395,9 +1398,6 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (strchr(",;)}", c)) /* legal separators */
|
||||
break;
|
||||
}
|
||||
|
||||
tpe = NUPA_REAL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue