]> granicus.if.org Git - strace/commitdiff
2003-12-14 Anton Blanchard <anton@samba.org>
authorRoland McGrath <roland@redhat.com>
Tue, 13 Jan 2004 10:13:44 +0000 (10:13 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 13 Jan 2004 10:13:44 +0000 (10:13 +0000)
* syscall.c (get_error) [POWERPC]: Cast result to unsigned long for
ppc64, we were misreporting syscalls that really succeeded as having
failed.

syscall.c

index d4f6413ae4b0038098954b549be23b789deebfef..3b482ba3c0ffe71c84269ba109920f7dfb911995 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -1414,7 +1414,7 @@ struct tcb *tcp;
                }
 #else
 #ifdef POWERPC
-               if (result && (unsigned) -result < nerrnos) {
+               if (result && (unsigned long) -result < nerrnos) {
                        tcp->u_rval = -1;
                        u_error = -result;
                }