mips: fix compilation warning

* syscall.c (get_scno) [MIPS]: Fix harmless compilation warning
about comparison between signed and unsigned integer expressions.
This commit is contained in:
Дмитрий Левин 2015-03-02 15:06:51 +00:00
parent 822892ba45
commit f677715a9b

View File

@ -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;