-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined behaviour on 32-bit platforms #412
Comments
I haven't found any other UB related to For unordered-containers/Data/HashMap/Internal.hs Lines 2252 to 2256 in 63ec59a
|
Do things work out if we manually set the value to -1, or do other bitwise operations go screwy for other reasons? If a branching factor of 32 is problematic on 32-bit architectures, can't we just set it back to 16 for them? |
I think some operations expect the "empty bitmap" to be 0, for example the loop in To fix this issue, I'd try using |
unordered-containers/Data/HashMap/Internal.hs
Lines 2258 to 2261 in 63ec59a
The docs for
unsafeShiftL
say:With
maxChildren
being 32 since #317, the value offullNodeMask
seems to be subject to UB on 32-bit platforms.The text was updated successfully, but these errors were encountered: