mirror of
https://github.com/ziglang/zig.git
synced 2026-10-14 10:27:43 -04:00
fix 32 bit compilation
This commit is contained in:
1 parent
4f1e5f78f6
commit
6b8c7540a8
1 file changed
+1
-1
+1
-1
@@ -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];
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user