formula(), move final kptr incrementation out of the loop

This commit is contained in:
rlar 2016-05-14 12:33:07 +02:00
parent 2010e6b4fb
commit 3136f45229
1 changed files with 1 additions and 2 deletions

View File

@ -911,14 +911,13 @@ formula(dico_t *dico, const char *s, const char *s_end, bool *perror)
} /* comma list? */
if (kptr >= s_end) {
kptr++;
break;
}
if ((d == ')') && (level <= 0)) {
kptr++;
break;
}
}
kptr++;
// fixme, here level = 0 !!!!! (almost)