Skip to content

Commit

Permalink
remove i64 cast
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Jun 28, 2019
1 parent fc296f0 commit c730a54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sys/test_ptrace.rs
Expand Up @@ -139,10 +139,10 @@ fn test_ptrace_syscall() {
ptrace::setoptions(child, ptrace::Options::PTRACE_O_TRACESYSGOOD).unwrap();

#[cfg(target_arch = "x86_64")]
let get_syscall_id = || ptrace::getregs(child).unwrap().orig_rax as i64;
let get_syscall_id = || ptrace::getregs(child).unwrap().orig_rax;

#[cfg(target_arch = "x86")]
let get_syscall_id = || ptrace::getregs(child).unwrap().orig_eax as i64;
let get_syscall_id = || ptrace::getregs(child).unwrap().orig_eax;

// kill entry
ptrace::syscall(child, None).unwrap();
Expand Down

0 comments on commit c730a54

Please sign in to comment.