diff options
| author | joachimschmidt557 <joachim.schmidt557@outlook.com> | 2021-05-25 10:34:02 +0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-25 15:38:32 -0400 |
| commit | 4c75f834e7195d05ca4f358aa093003e60380be7 (patch) | |
| tree | 23c0e8998a21e7f5c0d8e08bc580c3a449e92174 /src/main.zig | |
| parent | 8c5d4295e5f6459ba99d219c1922a30ec6da24bf (diff) | |
| download | zig-4c75f834e7195d05ca4f358aa093003e60380be7.tar.gz zig-4c75f834e7195d05ca4f358aa093003e60380be7.zip | |
Re-enable building the self-hosted compiler for 32-bit targets
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.zig b/src/main.zig index 4b8f30b109..455f19cccc 100644 --- a/src/main.zig +++ b/src/main.zig @@ -3642,7 +3642,7 @@ pub fn cmdAstCheck( if (stat.size > max_src_size) return error.FileTooBig; - const source = try arena.allocSentinel(u8, stat.size, 0); + const source = try arena.allocSentinel(u8, @intCast(usize, stat.size), 0); const amt = try f.readAll(source); if (amt != stat.size) return error.UnexpectedEndOfFile; @@ -3778,7 +3778,7 @@ pub fn cmdChangelist( .root_decl = null, }; - const source = try arena.allocSentinel(u8, stat.size, 0); + const source = try arena.allocSentinel(u8, @intCast(usize, stat.size), 0); const amt = try f.readAll(source); if (amt != stat.size) return error.UnexpectedEndOfFile; @@ -3818,7 +3818,7 @@ pub fn cmdChangelist( if (new_stat.size > max_src_size) return error.FileTooBig; - const new_source = try arena.allocSentinel(u8, new_stat.size, 0); + const new_source = try arena.allocSentinel(u8, @intCast(usize, new_stat.size), 0); const new_amt = try new_f.readAll(new_source); if (new_amt != new_stat.size) return error.UnexpectedEndOfFile; |
