bugfix in the C runtime which had made the parser up to 200 times slower for some sentences

This commit is contained in:
kr.angelov
2013-11-13 15:15:28 +00:00
parent f904846f0f
commit 63a90f34af

View File

@@ -1247,9 +1247,9 @@ pgf_new_parse_state(PgfParsing* ps, size_t start_offset, BIND_TYPE bind_type)
pstate = &ps->after;
while (*pstate != NULL) {
if (bind_type != BIND_NONE) {
if (ps->before->start_offset == start_offset &&
ps->before->end_offset == start_offset &&
!ps->before->needs_bind)
if ((*pstate)->start_offset == start_offset &&
(*pstate)->end_offset == start_offset &&
!(*pstate)->needs_bind)
return ps->before;
} else {
if ((*pstate)->start_offset == start_offset)