From a65be05a6efdd89657215da1b661e01f09eef4e8 Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Thu, 20 Jan 2022 02:21:52 -0800 Subject: [PATCH] Make the BufMap.count return value match its underlying HashMap's Size Fixes a process.EnvMap compile error on 32-bit architectures --- lib/std/buf_map.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/buf_map.zig b/lib/std/buf_map.zig index bd59d6da45..5d155747d2 100644 --- a/lib/std/buf_map.zig +++ b/lib/std/buf_map.zig @@ -82,7 +82,7 @@ pub const BufMap = struct { } /// Returns the number of KV pairs stored in the map. - pub fn count(self: BufMap) usize { + pub fn count(self: BufMap) BufMapHashMap.Size { return self.hash_map.count(); }