[indic/myanmar] Simplify compare functions
This commit is contained in:
parent
a5bcd8567f
commit
39c132a62d
|
@ -461,7 +461,7 @@ compare_indic_order (const hb_glyph_info_t *pa, const hb_glyph_info_t *pb)
|
||||||
int a = pa->indic_position();
|
int a = pa->indic_position();
|
||||||
int b = pb->indic_position();
|
int b = pb->indic_position();
|
||||||
|
|
||||||
return a < b ? -1 : a == b ? 0 : +1;
|
return (int) a - (int) b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -202,7 +202,7 @@ compare_myanmar_order (const hb_glyph_info_t *pa, const hb_glyph_info_t *pb)
|
||||||
int a = pa->myanmar_position();
|
int a = pa->myanmar_position();
|
||||||
int b = pb->myanmar_position();
|
int b = pb->myanmar_position();
|
||||||
|
|
||||||
return a < b ? -1 : a == b ? 0 : +1;
|
return (int) a - (int) b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue