From c730a543ac9327273ad173c0ab817be54ee1fc3f Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Fri, 28 Jun 2019 01:07:17 -0300 Subject: [PATCH] remove i64 cast --- test/sys/test_ptrace.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sys/test_ptrace.rs b/test/sys/test_ptrace.rs index 393967cee2..d7c7f0058b 100644 --- a/test/sys/test_ptrace.rs +++ b/test/sys/test_ptrace.rs @@ -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();