Skip to content

Test FlagHasPid with != 0, not == 1 - #38

Open
markmnl wants to merge 1 commit into
mainfrom
fix/flag-haspid-idiom
Open

Test FlagHasPid with != 0, not == 1#38
markmnl wants to merge 1 commit into
mainfrom
fix/flag-haspid-idiom

Conversation

@markmnl

@markmnl markmnl commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Confirmed follow-up (d) of #33, cosmetic: h.Flags&FlagHasPid == 1 (in Header.Encode and readHeader) only works because FlagHasPid is bit 0. Both sites now use != 0, matching every other flag check in the codebase. No behaviour change.

🤖 Generated with Claude Code

Masking with a flag constant then comparing to 1 only works while the
flag is bit 0; != 0 is correct for any bit position and matches every
other flag check in the codebase.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant