changeset 123049ae8ae5 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=123049ae8ae5
description:
        syscall: Avoid a compiler warning which turns into a bug.
        Simply cast the result to an int and life is good.

diffstat:

0 files changed

diffs (12 lines):

diff -r cf280b3621cf -r 123049ae8ae5 src/sim/syscall_emul.cc
--- a/src/sim/syscall_emul.cc   Sun Aug 03 18:13:29 2008 -0400
+++ b/src/sim/syscall_emul.cc   Sun Aug 03 18:19:53 2008 -0700
@@ -385,7 +385,7 @@
     // changing anything.
     mode_t oldMask = umask(0);
     umask(oldMask);
-    return oldMask;
+    return (int)oldMask;
 }
 
 SyscallReturn
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to