Fix compiler warnings

This commit is contained in:
Behdad Esfahbod 2012-05-11 23:10:31 +02:00
parent f7e8dcfd4f
commit 7f852b644b
2 changed files with 2 additions and 2 deletions

View File

@ -620,7 +620,7 @@ final_reordering_syllable (hb_buffer_t *buffer, hb_mask_t *mask_array,
} reph_pos; } reph_pos;
/* XXX Figure out old behavior too */ /* XXX Figure out old behavior too */
switch (buffer->props.script) switch ((hb_tag_t) buffer->props.script)
{ {
case HB_SCRIPT_MALAYALAM: case HB_SCRIPT_MALAYALAM:
case HB_SCRIPT_ORIYA: case HB_SCRIPT_ORIYA:

View File

@ -68,7 +68,7 @@ enum hb_ot_complex_shaper_t {
static inline hb_ot_complex_shaper_t static inline hb_ot_complex_shaper_t
hb_ot_shape_complex_categorize (const hb_segment_properties_t *props) hb_ot_shape_complex_categorize (const hb_segment_properties_t *props)
{ {
switch ((int) props->script) switch ((hb_tag_t) props->script)
{ {
default: default:
return hb_ot_complex_shaper_default; return hb_ot_complex_shaper_default;