diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index c9e10bdc4..0b7f54829 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -1371,7 +1371,8 @@ struct PosLookup : Lookup if (!_hb_ot_layout_check_glyph_property (c->face, &c->buffer->cur(), c->lookup_props, &c->property)) return false; - for (unsigned int i = 0; i < get_subtable_count (); i++) + unsigned int count = get_subtable_count (); + for (unsigned int i = 0; i < count; i++) if (get_subtable (i).apply (c, lookup_type)) return true; diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 0621f86d3..1cec8b4fb 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -147,7 +147,7 @@ _hb_ot_layout_check_glyph_property (hb_face_t *face, unsigned int property; property = _hb_ot_layout_get_glyph_property (face, ginfo); - (void) (property_out && (*property_out = property)); + *property_out = property; return _hb_ot_layout_match_properties (face, ginfo->codepoint, property, lookup_props); }