[aat] Fix debug compile

pull/743/merge
Behdad Esfahbod 7 years ago
parent 8cb8bfd5b5
commit 126ffdbe95
  1. 6
      src/hb-aat-layout-common-private.hh
  2. 2
      src/hb-aat-layout-morx-table.hh

@ -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 ();

@ -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;

Loading…
Cancel
Save