Commit edc40157eb

Zachary Meadows <zmeadows@gmail.com>
2020-09-08 19:41:05
Switch type of HashMap's count from usize to u32 (#6262)
1 parent 42b1b6b
Changed files (1)
lib
lib/std/hash_map.zig
@@ -113,7 +113,7 @@ pub fn HashMap(
             return self.unmanaged.clearAndFree(self.allocator);
         }
 
-        pub fn count(self: Self) usize {
+        pub fn count(self: Self) Size {
             return self.unmanaged.count();
         }