Skip to content

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

Merged
markmnl merged 2 commits into
mainfrom
fix/flag-haspid-idiom
Aug 25, 2026
Merged

Test FlagHasPid with != 0, not == 1#38
markmnl merged 2 commits 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>
@markmnl
markmnl merged commit 81d4987 into main Aug 25, 2026
1 of 2 checks passed
@markmnl
markmnl deleted the fix/flag-haspid-idiom branch August 25, 2026 10:08
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