From 47f1e7b1fa2aae0d4c9bd273ffcbdde5fa36c523 Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 16 May 2016 11:45:51 +0200 Subject: [PATCH] nupa_subcktcall(), fix lvalue --- src/frontend/numparam/xpressn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index aedaebbeb..2e777d23e 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1610,17 +1610,17 @@ nupa_subcktcall(dico_t *dico, char *s, char * const x, char * const inst_name) while ((jp - t_p) < ls) { /* try to fetch valid arguments */ - int (kp - t_p) = (int) (jp - t_p); + char *kp = t_p + (int) (jp - t_p); spice_dstring_reinit(&ustr); if (t_p[(kp - t_p)] == Intro) { /* handle historical syntax... */ if (alfa(t_p[(kp - t_p) + 1])) { - (kp - t_p)++; + kp++; } else if (t_p[(kp - t_p) + 1] == '(') { /* transform to braces... */ - (kp - t_p)++; + kp++; t_p[(kp - t_p)] = '{'; int g = (int) (kp - t_p); int nest = 1; @@ -1642,7 +1642,7 @@ nupa_subcktcall(dico_t *dico, char *s, char * const x, char * const inst_name) /* number, identifier */ int h = (int) (kp - t_p); while (t_p[(kp - t_p)] > ' ') - (kp - t_p)++; + kp++; pscopy(&ustr, t_p, h, (int) (kp - t_p) - h); jp = t_p + (kp - t_p); } else if (t_p[(kp - t_p)] == '{') {