summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/mips/process.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/mips/process.cc b/src/arch/mips/process.cc
index 3f65691aa..6bae08392 100644
--- a/src/arch/mips/process.cc
+++ b/src/arch/mips/process.cc
@@ -224,7 +224,7 @@ MipsProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret)
tc->setIntReg(ReturnValueReg, sysret.returnValue());
} else {
// got an error, return details
- tc->setIntReg(SyscallSuccessReg, (IntReg) -1);
+ tc->setIntReg(SyscallSuccessReg, (uint32_t)(-1));
tc->setIntReg(ReturnValueReg, sysret.errnoValue());
}
}