Skip to content
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

fix: crc32 should not have byte order be platform dependent #49

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

finger563
Copy link
Contributor

Previously, the crc32 (if enabled) was being calculated on different platforms according to different byte orderings, which meant that serialized byte streams including CRC which were serialized one one system would not properly deserialize on a system with a different byte order (or for which alpaca had defined a different byte order in crc32).

This PR updates it so that no matter what, the crc32 is always computed in little endian format.

@p-ranav p-ranav merged commit ea5ab2a into p-ranav:master Jul 20, 2024
7 checks passed
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.

2 participants