diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2022-04-26 17:08:54 +0200 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2022-04-27 11:10:52 +0200 |
| commit | 6f4343b61afe36a709e713735947561a2b76bce8 (patch) | |
| tree | 19517971ce99ed10afeac53ed4e19c97c60da7cc /lib/std/event | |
| parent | 6c0719fd5f29f524b789d5038fdc9fc0878f2e6a (diff) | |
| download | zig-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.zig | 2 |
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); |
