[set] Minor rewrite one cmp() in term of other

This commit is contained in:
Behdad Esfahbod 2021-08-15 11:06:52 -06:00
parent 5b4dbf5af3
commit 32bbf53d9c
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ struct hb_set_t
struct page_map_t
{
int cmp (const page_map_t &o) const { return (int) o.major - (int) major; }
int cmp (const page_map_t &o) const { return cmp (o.major); }
int cmp (uint32_t o_major) const { return (int) o_major - (int) major; }
uint32_t major;