diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-03-07 12:20:15 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-03-10 17:51:07 -0700 |
| commit | 6b8c7540a876b000e5c53fdbf9336c9fdc8d7556 (patch) | |
| tree | 9157ad608ffa04d73910b404d18524b8a16b913f /src/Compilation.zig | |
| parent | 4f1e5f78f6c7c1423bad6fea273b05d401035aea (diff) | |
| download | zig-6b8c7540a876b000e5c53fdbf9336c9fdc8d7556.tar.gz zig-6b8c7540a876b000e5c53fdbf9336c9fdc8d7556.zip | |
fix 32 bit compilation
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 132dd37fbf..2bb80a9abe 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3849,7 +3849,7 @@ fn docsCopyFallible(comp: *Compilation) anyerror!void { const header_bytes = std.mem.asBytes(&file_header); const padding = p: { - const remainder = stat.size % 512; + const remainder: u16 = @intCast(stat.size % 512); const n = if (remainder > 0) 512 - remainder else 0; break :p padding_buffer[0..n]; }; |
