getexpress(), fix lvalues

This commit is contained in:
rlar 2017-11-18 12:13:47 +01:00
parent 9ff93246b6
commit ec68ee7b94
1 changed files with 4 additions and 4 deletions

View File

@ -1348,14 +1348,14 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
nupa_type tpe; nupa_type tpe;
ls_ptr = s + strlen(s); ls_ptr = s + strlen(s);
(xia_ptr + 1) = (p + 1) + 1; xia_ptr = (p + 1) + 1 - 1;
while (((xia_ptr + 1) < ls_ptr) && ((xia_ptr + 1)[-1] <= ' ')) while (((xia_ptr + 1) < ls_ptr) && ((xia_ptr + 1)[-1] <= ' '))
(xia_ptr + 1)++; /*white space ? */ xia_ptr++; /*white space ? */
if ((xia_ptr + 1)[-1] == '"') { if ((xia_ptr + 1)[-1] == '"') {
/* string constant */ /* string constant */
(xia_ptr + 1)++; xia_ptr++;
p = (xia_ptr + 1) - 1; p = (xia_ptr + 1) - 1;
while (((p + 1) < ls_ptr) && (*p != '"')) while (((p + 1) < ls_ptr) && (*p != '"'))
@ -1370,7 +1370,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
} else { } else {
if ((xia_ptr + 1)[-1] == '{') if ((xia_ptr + 1)[-1] == '{')
(xia_ptr + 1)++; xia_ptr++;
p = (xia_ptr + 1) - 1 - 1; p = (xia_ptr + 1) - 1 - 1;