]> granicus.if.org Git - strace/commitdiff
mips: fix compilation warning
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 2 Mar 2015 15:06:51 +0000 (15:06 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 2 Mar 2015 15:06:51 +0000 (15:06 +0000)
* syscall.c (get_scno) [MIPS]: Fix harmless compilation warning
about comparison between signed and unsigned integer expressions.

syscall.c

index 042a5d53df97bb189beaf9d38b615e1ce3b75754..228536b479a7f51ac8dd4cb98fd69939c73e8f5a 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -1407,7 +1407,7 @@ get_scno(struct tcb *tcp)
        scno = mips_REG_V0;
 
        if (!SCNO_IN_RANGE(scno)) {
-               if (mips_REG_A3 == 0 || mips_REG_A3 == -1) {
+               if (mips_REG_A3 == 0 || mips_REG_A3 == (uint64_t) -1) {
                        if (debug_flag)
                                fprintf(stderr, "stray syscall exit: v0 = %ld\n", scno);
                        return 0;