lkml.org 
[lkml]   [2009]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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

\
 
 \ /
  Last update: 2009-02-20 13:07    [W:0.069 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site