removed unnecessary cast
parent
404c87b06a
commit
5ab8db7b3e
|
@ -247,8 +247,7 @@ pub fn writeCurrentStackTraceWindows(
|
||||||
start_addr: ?usize,
|
start_addr: ?usize,
|
||||||
) !void {
|
) !void {
|
||||||
var addr_buf: [1024]usize = undefined;
|
var addr_buf: [1024]usize = undefined;
|
||||||
const casted_len = @intCast(u32, addr_buf.len); // TODO shouldn't need this cast
|
const n = windows.RtlCaptureStackBackTrace(0, addr_buf.len, @ptrCast(**c_void, &addr_buf), null);
|
||||||
const n = windows.RtlCaptureStackBackTrace(0, casted_len, @ptrCast(**c_void, &addr_buf), null);
|
|
||||||
const addrs = addr_buf[0..n];
|
const addrs = addr_buf[0..n];
|
||||||
var start_i: usize = if (start_addr) |saddr| blk: {
|
var start_i: usize = if (start_addr) |saddr| blk: {
|
||||||
for (addrs) |addr, i| {
|
for (addrs) |addr, i| {
|
||||||
|
|
Loading…
Reference in New Issue