From 043a04b775bb2eca52fa211e1be0a38848cfdce0 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 22 May 2016 21:03:24 +0200 Subject: [PATCH] getexpress(), simplify usage --- src/frontend/numparam/xpressn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index 33389e040..7338c3214 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1669,9 +1669,8 @@ nupa_subcktcall(dico_t *dico, char *s, char *x, char *inst_name) } else if (t_p[k] == '{') { char *aux = spice_dstring_value(&tstr); const char *tmp = aux + j; - tmp = getexpress(NULL, &ustr, tmp) + 1; + tmp = getexpress(NULL, &ustr, tmp); j = (int) (tmp - aux); - j--; /* confusion: j was in Turbo Pascal convention */ } else { j++; if (t_p[k] > ' ')