authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2022-01-20 02:21:52-08:00
committergravatar for johnnymarler@gmail.comJonathan Marler <johnnymarler@gmail.com> 2022-05-11 18:40:53-06:00
loga65be05a6efdd89657215da1b661e01f09eef4e8
tree1601c5460a5d528b90e59e62798d3a3ea24c59d7
parent9e89000ffc92fd881ccb59d2571debe003a2f7b1

Make the BufMap.count return value match its underlying HashMap's Size

Fixes a process.EnvMap compile error on 32-bit architectures

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/buf_map.zig+1-1
......@@ -82,7 +82,7 @@ pub const BufMap = struct {
8282 }
8383
8484 /// Returns the number of KV pairs stored in the map.
85 pub fn count(self: BufMap) usize {
85 pub fn count(self: BufMap) BufMapHashMap.Size {
8686 return self.hash_map.count();
8787 }
8888