Skip to content

Conversation

@konsumlamm
Copy link
Contributor

Fixes #412. shiftL returns 0 if the shift is >= the bit size.

I checked the resulting core (on a 64 bit platform) and there is no difference, since fullNodeMask is constant folded anyway.

Copy link
Member

@sjakobi sjakobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks! :)

@sjakobi sjakobi merged commit 807e3a4 into haskell-unordered-containers:master Apr 14, 2022
@konsumlamm konsumlamm deleted the fix-ub branch April 14, 2022 12:50
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.

Undefined behaviour on 32-bit platforms

2 participants