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

No undefined behavior per C++ standard in detecting endianness. #195

Merged
merged 1 commit into from Mar 15, 2019
Merged

No undefined behavior per C++ standard in detecting endianness. #195

merged 1 commit into from Mar 15, 2019

Conversation

dimztimz
Copy link
Contributor

The union thingy is UB according to the standard, but not in GCC.
The char* pointer fix is always defined.

The union thingy is UB according to the standard, but not in GCC.
The char* pointer fix is always defined.
@onqtam onqtam merged commit 2d718a5 into doctest:dev Mar 15, 2019
@dimztimz dimztimz deleted the less-ub branch March 15, 2019 19:09
@onqtam onqtam changed the title No undefined behavior per C++ standard in detecting endianess. No undefined behavior per C++ standard in detecting endianness. Sep 22, 2019
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.

None yet

2 participants