Fix compiler warnings

pull/1/head
Behdad Esfahbod 13 years ago
parent f7e8dcfd4f
commit 7f852b644b
  1. 2
      src/hb-ot-shape-complex-indic.cc
  2. 2
      src/hb-ot-shape-complex-private.hh

@ -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:

@ -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;

Loading…
Cancel
Save