[Mesa3d-dev] [PATCH] win32_menu: add missing parentheses in mapMenu()

2010-01-06 Thread Roel Kluin
`|' has higher precedence than `?'.

Signed-off-by: Roel Kluin roel.kl...@gmail.com
---
 src/glut/glx/win32_menu.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glut/glx/win32_menu.c b/src/glut/glx/win32_menu.c
index 5ce264d..d8e336c 100644
--- a/src/glut/glx/win32_menu.c
+++ b/src/glut/glx/win32_menu.c
@@ -97,7 +97,7 @@ static void
 mapMenu(GLUTmenu * menu, int x, int y)
 {
   TrackPopupMenu((HMENU) menu-win, TPM_LEFTALIGN |
-(__glutMenuButton == TPM_RIGHTBUTTON) ? TPM_RIGHTBUTTON : TPM_LEFTBUTTON,
+((__glutMenuButton == TPM_RIGHTBUTTON) ? TPM_RIGHTBUTTON : TPM_LEFTBUTTON),
 x, y, 0, __glutCurrentWindow-win, NULL);
 }
 

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


Re: [Mesa3d-dev] [PATCH] win32_menu: add missing parentheses in mapMenu()

2010-01-06 Thread Brian Paul
Roel Kluin wrote:
 `|' has higher precedence than `?'.
 
 Signed-off-by: Roel Kluin roel.kl...@gmail.com

Applied to 7.7 branch.  Thanks.

-Brian


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev