commit | 8f88747a5e100adc3f722baf573143cbb812ac48 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Thu Aug 19 16:30:48 2021 -0600 |
committer | Behdad Esfahbod <behdad@behdad.org> | Thu Aug 19 16:31:01 2021 -0600 |
tree | 432ae24a81b851211146a2860b3a0a13ba6345e7 | |
parent | 3f2cc582f283319a5f98469b993403c6f79f3ef9 [diff] |
[bit-set-invertible] Fix previous() iteration
diff --git a/src/hb-bit-set-invertible.hh b/src/hb-bit-set-invertible.hh index 3b1d9df..5be6e45 100644 --- a/src/hb-bit-set-invertible.hh +++ b/src/hb-bit-set-invertible.hh
@@ -239,7 +239,7 @@ auto old = *codepoint; auto v = old; s.previous (&v); - if (old - 1 > v) + if (old - 1 > v || v == INVALID) { *codepoint = old - 1; return true;