Messages in this thread Patch in this message | | | Date | Fri, 20 Feb 2009 13:05:05 +0100 | From | Roel Kluin <> | Subject | [PATCH] IA64: cast has a higher precedence than '?' |
| |
because of the ?: this is not strictly necessary, but I think the added parentheses are nice here.
--------------------------->8-------------8<------------------------------ A cast has a higher precedence than '?'
Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h index d82f39b..b8a1933 100644 --- a/arch/x86/include/asm/syscall.h +++ b/arch/x86/include/asm/syscall.h @@ -61,7 +61,7 @@ static inline void syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, int error, long val) { - regs->ax = (long) error ?: val; + regs->ax = (long) (error ?: val); } #ifdef CONFIG_X86_32
| |