CRC32 function produces incorrect values by default #18
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/js-crc32#18
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It appears that this library isn't producing expected results out of the box:
However:
Same thing in Ruby:
Same thing in Rust:
A longer response was given in other issues, but to summarize:
>>> 0
to convert to uint32_t and|0
to convert to int32_t:-2**31
to2**31 - 1
). Dealing with 32-bit unsigned integers outside of the range (2**31
to2**32 - 1
) triggered a deoptimization.Thanks for the follow up, I did read the README more carefully, but unfortunately only after posting the issue. Thank you for the detailed explanation!