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

Fix unparenthesized macro input #4907

Merged
merged 1 commit into from Oct 17, 2021

Conversation

TellowKrinkle
Copy link
Member

Description of Changes

Parenthesize all the things

Also fixes a clang warning that converting the result of '?:' with integer constants to a boolean always evaluates to 'true'

Rationale behind Changes

Unparenthesized macros are very confusing

Suggested Testing Steps

I think this turns off pass1 for a bunch of microVU things, so make sure nothing was relying on it running (and if it was, signal it by actually including 4 in the bitflags instead of relying on weird macro operator precedence things)

@refractionpcsx2 refractionpcsx2 merged commit f22ba88 into PCSX2:master Oct 17, 2021
@TellowKrinkle TellowKrinkle deleted the MacroParens branch February 8, 2022 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants