Skip to content

fix(reader): mask byte before OR in BoolArray.materialize (Sonar S3034)#70

Merged
dfa1 merged 1 commit into
mainfrom
fix/boolarray-int-promotion
Jun 19, 2026
Merged

fix(reader): mask byte before OR in BoolArray.materialize (Sonar S3034)#70
dfa1 merged 1 commit into
mainfrom
fix/boolarray-int-promotion

Conversation

@dfa1

@dfa1 dfa1 commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Add & 0xff so the byte isn't sign-promoted to int in the bit-set OR. The
trailing (byte) cast already made the result correct, but the mask makes the
intent explicit and clears the reliability finding.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

Add `& 0xff` so the byte isn't sign-promoted to int in the bit-set OR. The
trailing `(byte)` cast already made the result correct, but the mask makes the
intent explicit and clears the reliability finding.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit bc8e9d4 into main Jun 19, 2026
6 checks passed
@dfa1 dfa1 deleted the fix/boolarray-int-promotion branch June 19, 2026 19:30
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