From 1e6a44af27458bdf261dc2609acc8ec7bfb6e6cf Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 1 May 2016 15:07:02 +0200 Subject: [PATCH] getexpress(), transform --- src/frontend/numparam/xpressn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index 22ef77038..c62e1169e 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1399,7 +1399,9 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi) else if (d == ')') level--; - } while (!((d == ')') && (level <= 0))); + if ((d == ')') && (level <= 0)) + break; + } while (1); } } while (!strchr(",;)}", c)); /* legal separators */