getexpress(), break early

instead of doing nothing and then breaking
This commit is contained in:
rlar 2016-05-06 20:53:09 +02:00
parent 8a3871a0ef
commit 4a6c7db226
1 changed files with 3 additions and 3 deletions

View File

@ -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;