diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-11-04 18:43:07 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-11-05 10:15:01 +0100 |
| commit | 9618fdc8a2409e56999e16dec59034cf511872e4 (patch) | |
| tree | 5186e86a08412f494e8ceb0ce381d15c237ac8ef /src/link/Coff.zig | |
| parent | 83d89a05b7670c5c25d4f0f717ac5168a9cb6557 (diff) | |
| download | zig-9618fdc8a2409e56999e16dec59034cf511872e4.tar.gz zig-9618fdc8a2409e56999e16dec59034cf511872e4.zip | |
coff: circumvent stage1 inference problems
Diffstat (limited to 'src/link/Coff.zig')
| -rw-r--r-- | src/link/Coff.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Coff.zig b/src/link/Coff.zig index 63358ca8a9..35769e7feb 100644 --- a/src/link/Coff.zig +++ b/src/link/Coff.zig @@ -2181,7 +2181,7 @@ pub fn getEntryPoint(self: Coff) ?SymbolWithLoc { pub fn getImageBase(self: Coff) u64 { const image_base: u64 = self.base.options.image_base_override orelse switch (self.base.options.output_mode) { .Exe => switch (self.base.options.target.cpu.arch) { - .aarch64 => 0x140000000, + .aarch64 => @as(u64, 0x140000000), .x86_64, .i386 => 0x400000, else => unreachable, // unsupported target architecture }, |
