From 7f852b644b8143492a02edfc853114aaa23446bd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 11 May 2012 23:10:31 +0200 Subject: [PATCH] Fix compiler warnings --- src/hb-ot-shape-complex-indic.cc | 2 +- src/hb-ot-shape-complex-private.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index 93b490e..79560c4 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -620,7 +620,7 @@ final_reordering_syllable (hb_buffer_t *buffer, hb_mask_t *mask_array, } reph_pos; /* XXX Figure out old behavior too */ - switch (buffer->props.script) + switch ((hb_tag_t) buffer->props.script) { case HB_SCRIPT_MALAYALAM: case HB_SCRIPT_ORIYA: diff --git a/src/hb-ot-shape-complex-private.hh b/src/hb-ot-shape-complex-private.hh index 9b61f8e..ba962b5 100644 --- a/src/hb-ot-shape-complex-private.hh +++ b/src/hb-ot-shape-complex-private.hh @@ -68,7 +68,7 @@ enum hb_ot_complex_shaper_t { static inline hb_ot_complex_shaper_t hb_ot_shape_complex_categorize (const hb_segment_properties_t *props) { - switch ((int) props->script) + switch ((hb_tag_t) props->script) { default: return hb_ot_complex_shaper_default; -- 2.7.4