public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IA64: cast has a higher precedence than '?'
@ 2009-02-20 11:52 Roel Kluin
  2009-02-20 12:50 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-02-20 11:52 UTC (permalink / raw)
  To: linux-ia64

A cast has a higher precedence than '?'

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/arch/ia64/include/asm/syscall.h b/arch/ia64/include/asm/syscall.h
index 2f758a4..3fc1832 100644
--- a/arch/ia64/include/asm/syscall.h
+++ b/arch/ia64/include/asm/syscall.h
@@ -64,7 +64,7 @@ static inline void syscall_set_return_value(struct task_struct *task,
 {
 #ifdef CONFIG_IA32_SUPPORT
 	if (IS_IA32_PROCESS(regs)) {
-		regs->r8 = (long) error ? error : val;
+		regs->r8 = (long) (error ? error : val);
 		return;
 	}
 #endif


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-20 12:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-20 11:52 [PATCH] IA64: cast has a higher precedence than '?' Roel Kluin
2009-02-20 12:50 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox