[bit-set-invertible] Fix next/previous() logic
This commit is contained in:
parent
ee4e331a6e
commit
87885e6f02
|
@ -195,6 +195,7 @@ struct hb_bit_set_invertible_t
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
v = old;
|
||||||
s.next_range (&old, &v);
|
s.next_range (&old, &v);
|
||||||
|
|
||||||
*codepoint = v + 1;
|
*codepoint = v + 1;
|
||||||
|
@ -220,6 +221,7 @@ struct hb_bit_set_invertible_t
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
v = old;
|
||||||
s.previous_range (&v, &old);
|
s.previous_range (&v, &old);
|
||||||
|
|
||||||
*codepoint = v - 1;
|
*codepoint = v - 1;
|
||||||
|
|
Loading…
Reference in New Issue