diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-07-19 17:39:55 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-07-20 01:06:29 -0700 |
| commit | eb4028bf30bca7036c6bdc65feb321b163e84ecd (patch) | |
| tree | 2dab5bba8b6a8e6c0e95b7db47618a1e4ff280a7 /src/Compilation.zig | |
| parent | 9d00f69be58e7b807e26ba8a38050dd486d487f4 (diff) | |
| download | zig-eb4028bf30bca7036c6bdc65feb321b163e84ecd.tar.gz zig-eb4028bf30bca7036c6bdc65feb321b163e84ecd.zip | |
add std.fmt.hex
converts an unsigned integer into an array
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index b1c1851a6c..a36ab2a47e 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2106,7 +2106,7 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) !void { const tmp_artifact_directory = d: { const s = std.fs.path.sep_str; tmp_dir_rand_int = std.crypto.random.int(u64); - const tmp_dir_sub_path = "tmp" ++ s ++ Package.Manifest.hex64(tmp_dir_rand_int); + const tmp_dir_sub_path = "tmp" ++ s ++ std.fmt.hex(tmp_dir_rand_int); const path = try comp.local_cache_directory.join(gpa, &.{tmp_dir_sub_path}); errdefer gpa.free(path); @@ -2298,7 +2298,7 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) !void { } else unreachable; const s = std.fs.path.sep_str; - const tmp_dir_sub_path = "tmp" ++ s ++ Package.Manifest.hex64(tmp_dir_rand_int); + const tmp_dir_sub_path = "tmp" ++ s ++ std.fmt.hex(tmp_dir_rand_int); const o_sub_path = "o" ++ s ++ digest; // Work around windows `AccessDenied` if any files within this |
