[bit-set-invertible] Fix previous() iteration
This commit is contained in:
parent
3f2cc582f2
commit
8f88747a5e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue