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

Endianess check for convert functions seems not to work properly #19

Open
axel-he opened this issue May 20, 2020 · 0 comments
Open

Endianess check for convert functions seems not to work properly #19

axel-he opened this issue May 20, 2020 · 0 comments

Comments

@axel-he
Copy link

axel-he commented May 20, 2020

The function uint32_to_le/uint32_to_le shall convert an integer value to little endian or from little endian. But it seems that the endianess check seems a bit weak. When cross compiled for a big endian target, the check mentioned above has not detected the targets big endianess.

#if !defined(WORDS_BIGENDIAN)

#if !defined(WORDS_BIGENDIAN)

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

No branches or pull requests

1 participant