提交 6062f5f0 编写于 作者: B Behdad Esfahbod

Fix build with some compilers

As reported by Jonathan Kew on the list.
上级 acd88e65
...@@ -132,14 +132,15 @@ _hb_ot_shape_complex_setup_masks_thai (hb_ot_map_t *map, hb_buffer_t *buffer, hb ...@@ -132,14 +132,15 @@ _hb_ot_shape_complex_setup_masks_thai (hb_ot_map_t *map, hb_buffer_t *buffer, hb
unsigned int count = buffer->len; unsigned int count = buffer->len;
for (buffer->idx = 0; buffer->idx < count;) for (buffer->idx = 0; buffer->idx < count;)
{ {
if (likely (!IS_SARA_AM (buffer->info[buffer->idx].codepoint))) { hb_codepoint_t u = buffer->info[buffer->idx].codepoint;
if (likely (!IS_SARA_AM (u))) {
buffer->next_glyph (); buffer->next_glyph ();
continue; continue;
} }
/* Is SARA AM. Decompose and reorder. */ /* Is SARA AM. Decompose and reorder. */
uint16_t decomposed[2] = {NIKHAHIT_FROM_SARA_AM (buffer->info[buffer->idx].codepoint), uint16_t decomposed[2] = {uint16_t (NIKHAHIT_FROM_SARA_AM (u)),
SARA_AA_FROM_SARA_AM (buffer->info[buffer->idx].codepoint)}; uint16_t (SARA_AA_FROM_SARA_AM (u))};
buffer->replace_glyphs (1, 2, decomposed); buffer->replace_glyphs (1, 2, decomposed);
if (unlikely (buffer->in_error)) if (unlikely (buffer->in_error))
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册