diff options
| author | Zachary Raineri <zach@raineri.software> | 2023-07-24 05:34:16 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-07-24 10:23:51 -0700 |
| commit | d82b35901035a325ca7afd38b28ff2386f90ae84 (patch) | |
| tree | 1a370e979308a3406ea42e55f16299d48ba19700 /lib/std/Build.zig | |
| parent | 77b96231a6bc195cc482d05599e8c20ee01645a6 (diff) | |
| download | zig-d82b35901035a325ca7afd38b28ff2386f90ae84.tar.gz zig-d82b35901035a325ca7afd38b28ff2386f90ae84.zip | |
Use builtin inference over @as where possible
Diffstat (limited to 'lib/std/Build.zig')
| -rw-r--r-- | lib/std/Build.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Build.zig b/lib/std/Build.zig index 4d493e24fb..aaf152f5ac 100644 --- a/lib/std/Build.zig +++ b/lib/std/Build.zig @@ -1850,7 +1850,7 @@ pub fn hex64(x: u64) [16]u8 { var result: [16]u8 = undefined; var i: usize = 0; while (i < 8) : (i += 1) { - const byte = @as(u8, @truncate(x >> @as(u6, @intCast(8 * i)))); + const byte: u8 = @truncate(x >> @as(u6, @intCast(8 * i))); result[i * 2 + 0] = hex_charset[byte >> 4]; result[i * 2 + 1] = hex_charset[byte & 15]; } |
