diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-03-24 18:54:17 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-03-24 18:54:17 +0100 |
| commit | 04523db6ae214e92f9c842436e66d5618d73d48f (patch) | |
| tree | 16813112c3352618bd0960130f37e85dab33580e /src | |
| parent | 4ef26fc35562222263f564ca8d382ecd4b44c0a3 (diff) | |
| download | zig-04523db6ae214e92f9c842436e66d5618d73d48f.tar.gz zig-04523db6ae214e92f9c842436e66d5618d73d48f.zip | |
x64: fix for 32bit builds
Diffstat (limited to 'src')
| -rw-r--r-- | src/arch/x86_64/CodeGen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig index fa83884329..1e79119997 100644 --- a/src/arch/x86_64/CodeGen.zig +++ b/src/arch/x86_64/CodeGen.zig @@ -5692,7 +5692,7 @@ fn airReduce(self: *Self, inst: Air.Inst.Index) !void { fn airAggregateInit(self: *Self, inst: Air.Inst.Index) !void { const result_ty = self.air.typeOfIndex(inst); - const len = result_ty.arrayLen(); + const len = @intCast(usize, result_ty.arrayLen()); const ty_pl = self.air.instructions.items(.data)[inst].ty_pl; const elements = @bitCast([]const Air.Inst.Ref, self.air.extra[ty_pl.payload..][0..len]); const abi_size = @intCast(u32, result_ty.abiSize(self.target.*)); |
