Skip to content

ub: don't left shift negative values#17

Merged
pkova merged 1 commit into
masterfrom
dozreg/ub
Mar 25, 2026
Merged

ub: don't left shift negative values#17
pkova merged 1 commit into
masterfrom
dozreg/ub

Conversation

@dozreg-toplud
Copy link
Copy Markdown
Contributor

Ubsan was blowing up on the left shift of a negative value. So I cast them to an unsigned int for a left shift, then cast it back.

@pkova pkova merged commit 4423051 into master Mar 25, 2026
pkova added a commit to urbit/vere that referenced this pull request Mar 25, 2026
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.

4 participants