authorgravatar for 35231115+Rocknest@users.noreply.github.comRocknest <35231115+Rocknest@users.noreply.github.com> 2020-01-30 08:53:38+02:00
committergravatar for 35231115+Rocknest@users.noreply.github.comRocknest <35231115+Rocknest@users.noreply.github.com> 2020-01-30 08:53:38+02:00
log94f29ae11736bd5abb0383610b42cb7ea19f1f0c
tree625a9ccca1cc63e929d5c0f78337c37a7bf89ae9
parentb1884b3a62e4b7d5c2bb1532f6ccc372ec3d909a

Remove intCast's


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/os/windows/bits.zig+3-3
......@@ -930,7 +930,7 @@ pub usingnamespace switch (builtin.arch) {
930930 ExtendedRegisters: [512]BYTE,
931931
932932 pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} {
933 return .{.bp = @intCast(usize, ctx.Ebp), .ip = @intCast(usize, ctx.Eip)};
933 return .{.bp = ctx.Ebp, .ip = ctx.Eip};
934934 }
935935 };
936936
......@@ -1033,7 +1033,7 @@ pub usingnamespace switch (builtin.arch) {
10331033 LastExceptionFromRip: DWORD64,
10341034
10351035 pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} {
1036 return .{.bp = @intCast(usize, ctx.Rbp), .ip = @intCast(usize, ctx.Rip)};
1036 return .{.bp = ctx.Rbp, .ip = ctx.Rip};
10371037 }
10381038 };
10391039
......@@ -1101,7 +1101,7 @@ pub usingnamespace switch (builtin.arch) {
11011101 Wvr: [2]DWORD64,
11021102
11031103 pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} {
1104 return .{.bp = @intCast(usize, ctx.DUMMYUNIONNAME.DUMMYSTRUCTNAME.Fp), .ip = @intCast(usize, ctx.Pc)};
1104 return .{.bp = ctx.DUMMYUNIONNAME.DUMMYSTRUCTNAME.Fp, .ip = ctx.Pc};
11051105 }
11061106 };
11071107