diff --git a/src/hb-ot-map.cc b/src/hb-ot-map.cc index 6d623f53a..d40c67af9 100644 --- a/src/hb-ot-map.cc +++ b/src/hb-ot-map.cc @@ -191,7 +191,8 @@ hb_ot_map_builder_t::compile (hb_ot_map_t &m, feature_infos[j].max_value = feature_infos[i].max_value; feature_infos[j].default_value = feature_infos[i].default_value; } else { - feature_infos[j].flags &= ~F_GLOBAL; + if (feature_infos[j].flags & F_GLOBAL) + feature_infos[j].flags ^= F_GLOBAL; feature_infos[j].max_value = hb_max (feature_infos[j].max_value, feature_infos[i].max_value); /* Inherit default_value from j */ }