aboutsummaryrefslogtreecommitdiff
path: root/lib/std/fmt.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-08-24 15:57:44 -0400
committerGitHub <noreply@github.com>2022-08-24 15:57:44 -0400
commit2a96209c4060bbf8a41fbe34e687a7a4741d2fe1 (patch)
tree11594b42c723162c304f5cbce7259c856718458b /lib/std/fmt.zig
parent80b8294bccdbdf3bc0dd9248676e5c9718354125 (diff)
parent7b14d614d91df7b9b5d802f34bf628293fc714f0 (diff)
downloadzig-2a96209c4060bbf8a41fbe34e687a7a4741d2fe1.tar.gz
zig-2a96209c4060bbf8a41fbe34e687a7a4741d2fe1.zip
Merge pull request #12574 from Vexu/remove-bit-op-type-param
stage2+stage1: remove type parameter from bit builtins
Diffstat (limited to 'lib/std/fmt.zig')
-rw-r--r--lib/std/fmt.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig
index a1269ad252..9133477017 100644
--- a/lib/std/fmt.zig
+++ b/lib/std/fmt.zig
@@ -195,7 +195,7 @@ pub fn format(
}
if (comptime arg_state.hasUnusedArgs()) {
- const missing_count = arg_state.args_len - @popCount(ArgSetType, arg_state.used_args);
+ const missing_count = arg_state.args_len - @popCount(arg_state.used_args);
switch (missing_count) {
0 => unreachable,
1 => @compileError("unused argument in '" ++ fmt ++ "'"),
@@ -380,7 +380,7 @@ const ArgState = struct {
args_len: usize,
fn hasUnusedArgs(self: *@This()) bool {
- return @popCount(ArgSetType, self.used_args) != self.args_len;
+ return @popCount(self.used_args) != self.args_len;
}
fn nextArg(self: *@This(), arg_index: ?usize) ?usize {