RefCountedSet: use usize for living count to avoid overflow

This commit is contained in:
Qwerasd
2024-08-15 16:14:33 -04:00
parent 9cf6dd845c
commit 0c11d256c8

View File

@ -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.