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 - Precedence of operation &,==
Summary: Precedence of operation &,==
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 1.2
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL: http://www.cppreference.com/operator_...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-08 07:14 UTC by fbz
Modified: 2009-09-12 12:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.