]> granicus.if.org Git - strace/commitdiff
x86_64: fix compilation warning introduced in previous commit
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Feb 2013 18:57:16 +0000 (18:57 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Feb 2013 18:57:16 +0000 (18:57 +0000)
* syscall.c (printcall): Cast x86_64_regs.rip to the type being printed.

syscall.c

index d9f7b3b7229fa308e5fdcd6be426aec47d4f5e03..9d025741bc565c4ec1710feeba28ca73ddabfef9 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -741,7 +741,7 @@ printcall(struct tcb *tcp)
        tprintf("[%16lx] ", psw);
 # endif
 #elif defined(X86_64) || defined(X32)
-       tprintf("[%16lx] ", x86_64_regs.rip);
+       tprintf("[%16lx] ", (unsigned long) x86_64_regs.rip);
 #elif defined(IA64)
        long ip;