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

Correctly handle endianness without reference to host platform #1081

Merged
merged 1 commit into from Dec 22, 2020
Merged

Conversation

lvdlvd
Copy link
Collaborator

@lvdlvd lvdlvd commented Dec 20, 2020

The functions to properly encode and decode uint32 and uint16 relied on misguided pointer casts. this patch replaces them with clean, fast, portable code.

See https://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html

@Nightwalker-87 Nightwalker-87 added this to In progress in Release v1.7.0 via automation Dec 22, 2020
@Nightwalker-87 Nightwalker-87 added this to the v1.6.2 milestone Dec 22, 2020
Release v1.7.0 automation moved this from In progress to Reviewer approved Dec 22, 2020
@Nightwalker-87 Nightwalker-87 changed the title correctly handle endianness without reference to host platform Correctly handle endianness without reference to host platform Dec 22, 2020
@Nightwalker-87 Nightwalker-87 merged commit 104940e into stlink-org:develop Dec 22, 2020
Release v1.7.0 automation moved this from Reviewer approved to Done Dec 22, 2020
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Mar 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants