diff options
author | Nathan Binkert <nate@binkert.org> | 2008-08-03 18:19:53 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-08-03 18:19:53 -0700 |
commit | 678abbc3646695f7d9693ce0757abaf7463d0354 (patch) | |
tree | 2bbcefb335909e64211702f9b1f9c3d01433a7e6 | |
parent | 62c08a75ad18fda5d06d919db6d8d31a79be9630 (diff) | |
download | gem5-678abbc3646695f7d9693ce0757abaf7463d0354.tar.xz |
syscall: Avoid a compiler warning which turns into a bug.
Simply cast the result to an int and life is good.
-rw-r--r-- | src/sim/syscall_emul.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc index 3a0db1016..3f6c56b5f 100644 --- a/src/sim/syscall_emul.cc +++ b/src/sim/syscall_emul.cc @@ -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 |