Fix compiler warnings
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 11 May 2012 21:10:31 +0000 (23:10 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 11 May 2012 21:10:31 +0000 (23:10 +0200)
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-private.hh

index 93b490e..79560c4 100644 (file)
@@ -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:
index 9b61f8e..ba962b5 100644 (file)
@@ -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;