[aat] Fix more builds

Maybe I should disable C++11 detection such that my compiler also catches
these.  Doesn't look like we can switch to it for a while anyway...
This commit is contained in:
Behdad Esfahbod 2018-01-12 09:45:42 +01:00
parent 72cb2b1f57
commit dd38db523a
2 changed files with 10 additions and 10 deletions

View File

@ -637,7 +637,7 @@ struct StateTableDriver
c->transition (this, entry);
if (entry->flags & context_t::Flags::DontAdvance)
if (entry->flags & context_t::DontAdvance)
buffer->idx--; /* TODO Detect infinite loop. */
state = entry->newState;

View File

@ -43,16 +43,16 @@ struct RearrangementSubtable
struct driver_context_t
{
enum Flags {
MarkFirst = 0x8000, /* If set, make the current glyph the first
* glyph to be rearranged. */
MarkFirst = 0x8000, /* If set, make the current glyph the first
* glyph to be rearranged. */
DontAdvance = 0x4000, /* If set, don't advance to the next glyph
* before going to the new state. This means
* that the glyph index doesn't change, even
* if the glyph at that index has changed. */
MarkLast = 0x2000, /* If set, make the current glyph the last
* glyph to be rearranged. */
Reserved = 0x1FF0, /* These bits are reserved and should be set to 0. */
Verb = 0x000F, /* The type of rearrangement specified. */
* before going to the new state. This means
* that the glyph index doesn't change, even
* if the glyph at that index has changed. */
MarkLast = 0x2000, /* If set, make the current glyph the last
* glyph to be rearranged. */
Reserved = 0x1FF0, /* These bits are reserved and should be set to 0. */
Verb = 0x000F, /* The type of rearrangement specified. */
};
inline driver_context_t (const RearrangementSubtable *table) :