Skip to content

Commit 4c407f3

Browse files
One less sussy cast
1 parent b808cbe commit 4c407f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/skip_inner_frames.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn backtrace_new_should_start_with_call_site_trace() {
3939

4040
assert!(!b.frames().is_empty());
4141

42-
let this_ip = backtrace_new_should_start_with_call_site_trace as usize;
43-
let frame_ip = b.frames().first().unwrap().symbol_address() as usize;
42+
let this_ip = backtrace_new_should_start_with_call_site_trace as *mut c_void;
43+
let frame_ip = b.frames().first().unwrap().symbol_address();
4444
assert_eq!(this_ip, frame_ip);
4545
}

0 commit comments

Comments
 (0)