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) {...@@ -930,7 +930,7 @@ pub usingnamespace switch (builtin.arch) {
930 ExtendedRegisters: [512]BYTE,930 ExtendedRegisters: [512]BYTE,
931931
932 pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} {932 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};
934 } 934 }
935 };935 };
936936
...@@ -1033,7 +1033,7 @@ pub usingnamespace switch (builtin.arch) {...@@ -1033,7 +1033,7 @@ pub usingnamespace switch (builtin.arch) {
1033 LastExceptionFromRip: DWORD64,1033 LastExceptionFromRip: DWORD64,
10341034
1035 pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} {1035 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};
1037 }1037 }
1038 };1038 };
10391039
...@@ -1101,7 +1101,7 @@ pub usingnamespace switch (builtin.arch) {...@@ -1101,7 +1101,7 @@ pub usingnamespace switch (builtin.arch) {
1101 Wvr: [2]DWORD64,1101 Wvr: [2]DWORD64,
11021102
1103 pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} {1103 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};
1105 }1105 }
1106 };1106 };
11071107