[aat] Minor

This commit is contained in:
Behdad Esfahbod 2018-10-25 17:33:48 -07:00
parent 102af615f1
commit 1bb8ed86d6
1 changed files with 1 additions and 3 deletions

View File

@ -532,7 +532,7 @@ struct StateTableDriver
unsigned int state = StateTable<EntryData>::STATE_START_OF_TEXT;
bool last_was_dont_advance = false;
for (buffer->idx = 0;;)
for (buffer->idx = 0; buffer->successful;)
{
unsigned int klass = buffer->idx < buffer->len ?
machine.get_class (buffer->info[buffer->idx].codepoint, num_glyphs) :
@ -566,8 +566,6 @@ struct StateTableDriver
if (unlikely (!c->transition (this, entry)))
break;
if (unlikely (!buffer->successful)) return;
last_was_dont_advance = (entry->flags & context_t::DontAdvance) && buffer->max_ops-- > 0;
state = entry->newState;