[bit-set-invertible] Fix next/previous() logic

This commit is contained in:
Behdad Esfahbod 2021-08-19 13:26:25 -06:00
parent ee4e331a6e
commit 87885e6f02
1 changed files with 2 additions and 0 deletions

View File

@ -195,6 +195,7 @@ struct hb_bit_set_invertible_t
return false;
}
v = old;
s.next_range (&old, &v);
*codepoint = v + 1;
@ -220,6 +221,7 @@ struct hb_bit_set_invertible_t
return false;
}
v = old;
s.previous_range (&v, &old);
*codepoint = v - 1;