From: Roland McGrath Date: Tue, 13 Jan 2004 10:13:44 +0000 (+0000) Subject: 2003-12-14 Anton Blanchard X-Git-Tag: v4.5.18~656 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=190f8dd7b15ae1798750dad5db94c729f6e171c7;p=strace 2003-12-14 Anton Blanchard * syscall.c (get_error) [POWERPC]: Cast result to unsigned long for ppc64, we were misreporting syscalls that really succeeded as having failed. --- diff --git a/syscall.c b/syscall.c index d4f6413a..3b482ba3 100644 --- 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; }