Skip to content

Clarify operator precedence in declaration check - #731

Merged
zeux merged 1 commit into
zeux:masterfrom
KirillStr:patch-1
Jun 16, 2026
Merged

Clarify operator precedence in declaration check#731
zeux merged 1 commit into
zeux:masterfrom
KirillStr:patch-1

Conversation

@KirillStr

Copy link
Copy Markdown
Contributor

Fixes a bug where mixing bitwise & and logical && without explicit parentheses caused incorrect operator precedence during XML header validation.

Fixes a bug where mixing bitwise `&` and logical `&&` without explicit 
parentheses caused incorrect operator precedence during XML header validation.
@zeux

zeux commented Jun 16, 2026

Copy link
Copy Markdown
Owner

What is the bug?

@KirillStr

Copy link
Copy Markdown
Contributor Author

Add explicit parentheses around the bitwise-AND group to clarify operator precedence and avoid compiler warnings when building with -Werror.

@zeux

zeux commented Jun 16, 2026

Copy link
Copy Markdown
Owner

What compiler are you using that gives the warning, with what options? Neither GCC nor Clang seem to warn on this with -Wparentheses. I'm trying to figure out if I should merge this before the release and rebuild and retest all release archives for the release tomorrow, or just merge it after; the report that omits this information is not ideal.

@zeux zeux changed the title fix operator precedence bug in XML declaration check Clarify operator precedence in declaration check Jun 16, 2026
@zeux

zeux commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Going to merge this a little later today as cleanup.

@zeux
zeux merged commit 27b6832 into zeux:master Jun 16, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants