8000 Correctly handle endianness without reference to host platform by lvdlvd · Pull Request #1081 · stlink-org/stlink · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Correctly handle endianness without reference to host platform #1081

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

Merged
merged 1 commit into from
Dec 22, 2020
Merged

Conversation

lvdlvd
Copy link
@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 self-requested a review December 22, 2020 23:33
@Nightwalker-87 Nightwalker-87 added this to the v1.6.2 milestone 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
@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.

2 participants
0