From b1884b3a62e4b7d5c2bb1532f6ccc372ec3d909a Mon Sep 17 00:00:00 2001 From: Rocknest <35231115+Rocknest@users.noreply.github.com> Date: Thu, 30 Jan 2020 01:17:34 +0200 Subject: [PATCH] Fix aarch64 --- lib/std/os/windows/bits.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/windows/bits.zig b/lib/std/os/windows/bits.zig index e4c685494a..d1c09c02e8 100644 --- a/lib/std/os/windows/bits.zig +++ b/lib/std/os/windows/bits.zig @@ -1101,7 +1101,7 @@ pub usingnamespace switch (builtin.arch) { Wvr: [2]DWORD64, pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} { - return .{.bp = @intCast(usize, ctx.Fp), .ip = @intCast(usize, ctx.Pc)}; + return .{.bp = @intCast(usize, ctx.DUMMYUNIONNAME.DUMMYSTRUCTNAME.Fp), .ip = @intCast(usize, ctx.Pc)}; } };