getexpress(), cleanup

This commit is contained in:
rlar 2017-11-18 12:15:11 +01:00
parent ec68ee7b94
commit a913def4d7
1 changed files with 3 additions and 3 deletions

View File

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