[ scummvm-Bugs-1593768 ] Logical and should probably be bitwise and

SourceForge.net noreply at sourceforge.net
Thu Nov 9 22:34:12 CET 2006


Bugs item #1593768, was opened at 2006-11-09 22:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1593768&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Unknown Crash/Other
Group: Unknown
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mattias Wadman (matwad)
Assigned to: Nobody/Anonymous (nobody)
Summary: Logical and should probably be bitwise and

Initial Comment:
Stumbled upon this while fiddling around with google
code search:

http://www.google.com/codesearch?hl=en&lr=&q=scummvm+%22%26%26+0x%22&btnG=Search

engines/gob/mult_v2.cpp:1352
staticCount = (_multData2->staticCount + 1) && 0x7F;
Should probably be:
staticCount = (_multData2->staticCount + 1) & 0x7F;

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1593768&group_id=37116




More information about the Scummvm-tracker mailing list