findsubname(), collect decrement operations

This commit is contained in:
rlar 2017-11-22 22:35:46 +01:00
parent 31ad5ca970
commit 5e6fe75db6
1 changed files with 1 additions and 4 deletions

View File

@ -167,9 +167,7 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
if (p[-1] == '}') { if (p[-1] == '}') {
int nest = 1; int nest = 1;
p--; while (--p > s) {
while (p > s) {
if (p[-1] == '{') if (p[-1] == '{')
nest--; nest--;
else if (p[-1] == '}') else if (p[-1] == '}')
@ -178,7 +176,6 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
p--; p--;
break; break;
} }
p--;
} }
p_end = p; /* p_end points to '{' */ p_end = p; /* p_end points to '{' */