[aat] Fix debug compile

This commit is contained in:
Behdad Esfahbod 2018-02-07 12:26:41 -05:00
parent 8cb8bfd5b5
commit 126ffdbe95
2 changed files with 6 additions and 2 deletions

View File

@ -698,11 +698,15 @@ struct hb_aat_apply_context_t :
hb_buffer_t *buffer;
hb_sanitize_context_t sanitizer;
/* Unused. For debug tracing only. */
unsigned int lookup_index;
unsigned int debug_depth;
inline hb_aat_apply_context_t (hb_font_t *font_,
hb_buffer_t *buffer_,
hb_blob_t *table) :
font (font_), face (font->face), buffer (buffer_),
sanitizer ()
sanitizer (), lookup_index (0), debug_depth (0)
{
sanitizer.init (table);
sanitizer.num_glyphs = face->get_num_glyphs ();

View File

@ -280,7 +280,7 @@ struct ContextualSubtable
{
TRACE_SANITIZE (this);
unsigned int num_entries;
unsigned int num_entries = 0;
if (unlikely (!machine.sanitize (c, &num_entries))) return false;
unsigned int num_lookups = 0;