Although it doesn't actually matter from a generated-code point of
view, it doesn't make much sense for the args to
VG_(mk_SysRes_{x86,amd64}_linux) to be stated as unsigned; therefore
make them signed.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3971 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_syscall.c b/coregrind/m_syscall.c
index f130bc2..d6348e7 100644
--- a/coregrind/m_syscall.c
+++ b/coregrind/m_syscall.c
@@ -54,7 +54,7 @@
    syscall returns a value in -1 .. -4095 as a valid result so we can
    safely test with -4095.
 */
-SysRes VG_(mk_SysRes_x86_linux) ( UWord val ) {
+SysRes VG_(mk_SysRes_x86_linux) ( Word val ) {
    SysRes res;
    res.isError = val >= -4095 && val <= -1;
    res.val     = res.isError ? -val : val;
@@ -62,15 +62,14 @@
 }
 
 /* Similarly .. */
-SysRes VG_(mk_SysRes_amd64_linux) ( UWord val ) {
+SysRes VG_(mk_SysRes_amd64_linux) ( Word val ) {
    SysRes res;
    res.isError = val >= -4095 && val <= -1;
    res.val     = res.isError ? -val : val;
    return res;
 }
 
-/* PPC uses the CR7.SO bit to flag an error (CR0 in IBM-speke)
- */
+/* PPC uses the CR7.SO bit to flag an error (CR0 in IBM-speke) */
 SysRes VG_(mk_SysRes_ppc32_linux) ( UInt val, UInt errflag ) {
    SysRes res;
    res.isError = errflag != 0;
diff --git a/coregrind/pub_core_syscall.h b/coregrind/pub_core_syscall.h
index 120964f..19afa0c 100644
--- a/coregrind/pub_core_syscall.h
+++ b/coregrind/pub_core_syscall.h
@@ -61,8 +61,8 @@
 #define vgPlain_do_syscall6(s,a,b,c,d,e,f) VG_(do_syscall)((s),(a),(b),\
                                                            (c),(d),(e),(f))
 
-extern SysRes VG_(mk_SysRes_x86_linux)   ( UWord val );
-extern SysRes VG_(mk_SysRes_amd64_linux) ( UWord val );
+extern SysRes VG_(mk_SysRes_x86_linux)   ( Word val );
+extern SysRes VG_(mk_SysRes_amd64_linux) ( Word val );
 extern SysRes VG_(mk_SysRes_ppc32_linux) ( UInt val, UInt errflag );
 extern SysRes VG_(mk_SysRes_Error)       ( UWord val );
 extern SysRes VG_(mk_SysRes_Success)     ( UWord val );