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)] == '{') {