From: Dmitry V. Levin Date: Mon, 2 Mar 2015 15:06:51 +0000 (+0000) Subject: mips: fix compilation warning X-Git-Tag: v4.10~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f677715a9bd70c7c3106a656cf1af01b5a83a42f;p=strace mips: fix compilation warning * syscall.c (get_scno) [MIPS]: Fix harmless compilation warning about comparison between signed and unsigned integer expressions. --- diff --git a/syscall.c b/syscall.c index 042a5d53..228536b4 100644 --- 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;