mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
Make the BufMap.count return value match its underlying HashMap's Size
Fixes a process.EnvMap compile error on 32-bit architectures
This commit is contained in:
parent
9e89000ffc
commit
a65be05a6e
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user