Skip to content

docs: say a left shift drops its shifted-out bits - #20

Merged
heyJordanParker merged 1 commit into
masterfrom
docs/shift-overflow
Oct 6, 2026
Merged

heyJordanParker merged 1 commit into
masterfrom
docs/shift-overflow

Conversation

@heyJordanParker

Copy link
Copy Markdown
Owner

Section 24 says integer overflow throws ArithmeticError, and it did not say whether a shift that pushes bits out counts. It does not: << drops the bits it shifts out, and only a negative shift count throws.

Section 24 says integer overflow throws ArithmeticError, and it did not
say whether a shift that pushes bits out counts. It does not: << drops
the bits it shifts out, and only a negative shift count throws.

docs/
└── spec.md    <- section 24 separates shifts from overflow
@heyJordanParker
heyJordanParker merged commit f78cb79 into master Oct 6, 2026
7 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.

1 participant