From 0c11d256c8d6b7891e529a898d3e0b87c50001ae Mon Sep 17 00:00:00 2001 From: Qwerasd Date: Thu, 15 Aug 2024 16:14:33 -0400 Subject: [PATCH] RefCountedSet: use usize for living count to avoid overflow --- src/terminal/ref_counted_set.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/ref_counted_set.zig b/src/terminal/ref_counted_set.zig index 2032f641d..ed31db029 100644 --- a/src/terminal/ref_counted_set.zig +++ b/src/terminal/ref_counted_set.zig @@ -109,7 +109,7 @@ pub fn RefCountedSet( items: Offset(Item), /// The number of living items currently stored in the set. - living: Id = 0, + living: usize = 0, /// The next index to store an item at. /// Id 0 is reserved for unused items.