syscall: Avoid a compiler warning which turns into a bug.

Simply cast the result to an int and life is good.
This commit is contained in:
Nathan Binkert 2008-08-03 18:19:53 -07:00
parent 62c08a75ad
commit 678abbc364

View file

@ -385,7 +385,7 @@ umaskFunc(SyscallDesc *desc, int num, LiveProcess *process, ThreadContext *tc)
// changing anything.
mode_t oldMask = umask(0);
umask(oldMask);
return oldMask;
return (int)oldMask;
}
SyscallReturn