From 87885e6f02fef1d8289050c1c939d5a5566b5ee2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 Aug 2021 13:26:25 -0600 Subject: [PATCH] [bit-set-invertible] Fix next/previous() logic --- src/hb-bit-set-invertible.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-bit-set-invertible.hh b/src/hb-bit-set-invertible.hh index 4bbda2524..030fc9867 100644 --- a/src/hb-bit-set-invertible.hh +++ b/src/hb-bit-set-invertible.hh @@ -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;