-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove reliance on invalid decompositions in selector calculation (
#9337) Decomposing `hash` into `SELECTOR_SIZE` bytes relies on the compiler not checking the correctness of decompositions performed at compile time. This means the current code does not work at runtime and we're also looking to enforce the correctness of this decomposition at compile-time. I've replaced this decomposition with a truncation into 32 bits as this seems equivalent.
- Loading branch information
1 parent
8e6734e
commit c8e4260
Showing
2 changed files
with
4 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters