From: Dirk Mueller Date: Sun, 7 Dec 2003 23:36:14 +0000 (+0000) Subject: in C, casting of lvalues is illegal. X-Git-Tag: svn/VALGRIND_2_1_0~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f9343605d9bf5bdc5fd7ea5d0672cb629bd0c53;p=thirdparty%2Fvalgrind.git in C, casting of lvalues is illegal. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2099 --- diff --git a/coregrind/vg_syscalls.c b/coregrind/vg_syscalls.c index 5437d50856..6ac5aaea67 100644 --- a/coregrind/vg_syscalls.c +++ b/coregrind/vg_syscalls.c @@ -815,7 +815,7 @@ static Bool fd_allowed(Int fd, const Char *syscall, ThreadId tid) POST(new) __attribute__((alias(STR(after_##old)))) #define SYSNO (tst->m_eax) /* in PRE(x) */ -#define res ((Int)tst->m_eax) /* in POST(x) */ +#define res (tst->m_eax) /* in POST(x) */ #define arg1 (tst->m_ebx) #define arg2 (tst->m_ecx) #define arg3 (tst->m_edx)