We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 740

Summary: Precedence of operation &,==
Product: SDL Reporter: fbz <fbzok>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: All   
OS: All   
URL: http://www.cppreference.com/operator_precedence.html

Description fbz 2009-05-08 07:14:04 UTC
file: http://svn.libsdl.org/branches/SDL-1.2/src/video/windx5/SDL_dx5events.c
revision: <=r4509
line: 298
function: post_mouse_motion
code:
if ( SDL_GetAppState() & (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS) ==
		(SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS) ) 

change to ==>:

if ( (SDL_GetAppState() & (SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS)) ==
		(SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS) ) 

Right?
Comment 1 Ryan C. Gordon 2009-09-12 12:42:21 UTC
Fixed in svn revision #4716, thanks!

--ryan.