From a47348526cce315f27bcad4fb9abb1883d2ea53f Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 18 Nov 2017 12:00:23 +0100 Subject: [PATCH] getexpress(), fix lvalues --- 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 c22205eb9..b4a006020 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1349,14 +1349,14 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi) nupa_type tpe; ls_ptr = s + strlen(s); - (ia_ptr - s) = (int) (iptr - s) + 1; + ia_ptr = s + (iptr - s) + 1; while (((ia_ptr - s) < (ls_ptr - s)) && (s[(ia_ptr - s) - 1] <= ' ')) - (ia_ptr - s)++; /*white space ? */ + ia_ptr++; /*white space ? */ if (s[(ia_ptr - s) - 1] == '"') { /* string constant */ - (ia_ptr - s)++; + ia_ptr++; iptr = (ia_ptr - s) + s; while (((iptr - s) < (ls_ptr - s)) && (s[(iptr - s) - 1] != '"')) @@ -1371,7 +1371,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi) } else { if (s[(ia_ptr - s) - 1] == '{') - (ia_ptr - s)++; + ia_ptr++; iptr = (ia_ptr - s) - 1 + s;