From e0b43a79b7149291ff3c26946fda4378bd16400a Mon Sep 17 00:00:00 2001 From: Chad Brokaw Date: Tue, 10 Dec 2024 15:00:09 -0500 Subject: [PATCH] fix it --- read-fonts/src/tables/variations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/read-fonts/src/tables/variations.rs b/read-fonts/src/tables/variations.rs index 5dc307692..a72c5ae48 100644 --- a/read-fonts/src/tables/variations.rs +++ b/read-fonts/src/tables/variations.rs @@ -373,7 +373,7 @@ impl Iterator for PackedPointNumbersIter<'_> { return None; } self.seen += 1; - self.last_val += self.current_run.next()?; + self.last_val = self.last_val.checked_add(self.current_run.next()?)?; Some(self.last_val) }