[bit-set-invertible] Fix previous() iteration

This commit is contained in:
Behdad Esfahbod 2021-08-19 16:30:48 -06:00
parent 3f2cc582f2
commit 8f88747a5e
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ struct hb_bit_set_invertible_t
auto old = *codepoint;
auto v = old;
s.previous (&v);
if (old - 1 > v)
if (old - 1 > v || v == INVALID)
{
*codepoint = old - 1;
return true;