Fix build for realz

This commit is contained in:
Behdad Esfahbod 2018-11-29 16:29:30 -05:00
parent e2af4dd1ec
commit 27a6b0a2f7
2 changed files with 6 additions and 6 deletions

View File

@ -598,7 +598,7 @@ _hb_coretext_shape (hb_shape_plan_t *shape_plan,
} else { } else {
active_feature_t *feature = active_features.find (&event->feature); active_feature_t *feature = active_features.find (&event->feature);
if (feature) if (feature)
active_features.remove (feature - (active_feature_t *) active_features); active_features.remove (feature - active_features.arrayZ ());
} }
} }
} }

View File

@ -695,7 +695,7 @@ _hb_uniscribe_shape (hb_shape_plan_t *shape_plan,
{ {
active_feature_t *feature = active_features.find (&event->feature); active_feature_t *feature = active_features.find (&event->feature);
if (feature) if (feature)
active_features.remove (feature - (active_feature_t *) active_features); active_features.remove (feature - active_features.arrayZ ());
} }
} }
@ -886,8 +886,8 @@ retry:
&items[i].a, &items[i].a,
script_tags[i], script_tags[i],
language_tag, language_tag,
range_char_counts, range_char_counts.arrayZ (),
range_properties, range_properties.arrayZ (),
range_properties.len, range_properties.len,
pchars + chars_offset, pchars + chars_offset,
item_chars_len, item_chars_len,
@ -927,8 +927,8 @@ retry:
&items[i].a, &items[i].a,
script_tags[i], script_tags[i],
language_tag, language_tag,
range_char_counts, range_char_counts.arrayZ (),
range_properties, range_properties.arrayZ (),
range_properties.len, range_properties.len,
pchars + chars_offset, pchars + chars_offset,
log_clusters + chars_offset, log_clusters + chars_offset,