Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SI_DeviceGCController: Remedy undefined behavior regarding shifts #2730

Merged
merged 1 commit into from Jul 12, 2015

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Jul 9, 2015

Left shifting a negative left-hand operand is undefined behavior per section 5.8 subsection 2 of the C++11 standard.

Left shifting a negative left-hand operand is undefined behavior per section 5.8.2 of the C++11 standard.
@comex
Copy link
Contributor

comex commented Jul 9, 2015

This changes behavior. You're sure it's correct?

@lioncash
Copy link
Member Author

lioncash commented Jul 9, 2015

According to YAGCD those are the only button/input bits that are used. I've tested it in Donkey Konga and everything plays as normal.

@dolphin-emu-bot
Copy link
Contributor

FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:

automated-fifoci-reporter

@Tilka
Copy link
Member

Tilka commented Jul 12, 2015

lgtm

Tilka added a commit that referenced this pull request Jul 12, 2015
SI_DeviceGCController: Remedy undefined behavior regarding shifts
@Tilka Tilka merged commit b30ae1b into dolphin-emu:master Jul 12, 2015
@lioncash lioncash deleted the undef branch July 12, 2015 04:31
@Blunderstab
Copy link

Blunderstab commented Nov 15, 2017

The Bongos also use R (for the clap sensor), at least in Donkey Kong Jungle Beat, so this causes some issues in that game now (tested the release before this and it works fine).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants