aboutsummaryrefslogtreecommitdiff
path: root/lib/std/event
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2022-04-26 17:08:54 +0200
committerIsaac Freund <mail@isaacfreund.com>2022-04-27 11:10:52 +0200
commit6f4343b61afe36a709e713735947561a2b76bce8 (patch)
tree19517971ce99ed10afeac53ed4e19c97c60da7cc /lib/std/event
parent6c0719fd5f29f524b789d5038fdc9fc0878f2e6a (diff)
downloadzig-6f4343b61afe36a709e713735947561a2b76bce8.tar.gz
zig-6f4343b61afe36a709e713735947561a2b76bce8.zip
std: replace usage of std.meta.bitCount() with @bitSizeOf()
Diffstat (limited to 'lib/std/event')
-rw-r--r--lib/std/event/wait_group.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/event/wait_group.zig b/lib/std/event/wait_group.zig
index 4cc82cf98e..c88b01c812 100644
--- a/lib/std/event/wait_group.zig
+++ b/lib/std/event/wait_group.zig
@@ -14,7 +14,7 @@ const Loop = std.event.Loop;
/// `begin` will return error.Overflow when the limit is reached, even
/// if the integer type has not has not overflowed.
/// By default `max_value` is set to std.math.maxInt(CounterType).
-pub const WaitGroup = WaitGroupGeneric(std.meta.bitCount(usize));
+pub const WaitGroup = WaitGroupGeneric(@bitSizeOf(usize));
pub fn WaitGroupGeneric(comptime counter_size: u16) type {
const CounterType = std.meta.Int(.unsigned, counter_size);