findsubname(), fix lvalues

This commit is contained in:
rlar 2017-11-23 18:32:22 +01:00
parent 21d3f04659
commit a5c743d48c
1 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
while ((p > s) && (p[-1] <= ' '))
p--;
int (p_end - s) = (int) (p - s - 1) + 1; /* at p_end: space */
char *p_end = s + (int) (p - s - 1) + 1; /* at p_end: space */
while ((p > s) && (p[-1] > ' ')) {
if (p[-1] == '}') {
@ -179,7 +179,7 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
p--;
}
(p_end - s) = (int) (p - s - 1) + 1; /* p_end points to '{' */
p_end = s + (int) (p - s - 1) + 1; /* p_end points to '{' */
} else {
p--;