aboutsummaryrefslogtreecommitdiff
path: root/lib/std/buf_map.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2022-01-20 02:21:52 -0800
committerJonathan Marler <johnnymarler@gmail.com>2022-05-11 18:40:53 -0600
commita65be05a6efdd89657215da1b661e01f09eef4e8 (patch)
tree1601c5460a5d528b90e59e62798d3a3ea24c59d7 /lib/std/buf_map.zig
parent9e89000ffc92fd881ccb59d2571debe003a2f7b1 (diff)
downloadzig-a65be05a6efdd89657215da1b661e01f09eef4e8.tar.gz
zig-a65be05a6efdd89657215da1b661e01f09eef4e8.zip
Make the BufMap.count return value match its underlying HashMap's Size
Fixes a process.EnvMap compile error on 32-bit architectures
Diffstat (limited to 'lib/std/buf_map.zig')
-rw-r--r--lib/std/buf_map.zig2
1 files changed, 1 insertions, 1 deletions
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();
}