[buffer] Improve hash function of segment_properties_t
This commit is contained in:
parent
aee123fc83
commit
2e186d9f24
|
@ -81,8 +81,8 @@ hb_segment_properties_equal (const hb_segment_properties_t *a,
|
||||||
unsigned int
|
unsigned int
|
||||||
hb_segment_properties_hash (const hb_segment_properties_t *p)
|
hb_segment_properties_hash (const hb_segment_properties_t *p)
|
||||||
{
|
{
|
||||||
return (unsigned int) p->direction ^
|
return ((unsigned int) p->direction * 31 +
|
||||||
(unsigned int) p->script ^
|
(unsigned int) p->script) * 31 +
|
||||||
(intptr_t) (p->language);
|
(intptr_t) (p->language);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue