diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 6a9ee3ccc..e79fa8ed6 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -81,8 +81,8 @@ hb_segment_properties_equal (const hb_segment_properties_t *a, unsigned int hb_segment_properties_hash (const hb_segment_properties_t *p) { - return (unsigned int) p->direction ^ - (unsigned int) p->script ^ + return ((unsigned int) p->direction * 31 + + (unsigned int) p->script) * 31 + (intptr_t) (p->language); }