Skip to content

simplify endian handling - #737

Merged
anonrig merged 2 commits into
mainfrom
simplify_endian
Sep 18, 2024
Merged

simplify endian handling#737
anonrig merged 2 commits into
mainfrom
simplify_endian

Conversation

@lemire

@lemire lemire commented Sep 18, 2024

Copy link
Copy Markdown
Member

Mostly, we just remove unnecessary lines of code.

@lemire
lemire requested a review from anonrig September 18, 2024 17:40
Comment thread tests/basic_fuzzer.cpp
#else
std::cout << "You have litte-endian system." << std::endl;
#endif
if (std::endian::native == std::endian::big) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that it matters/changes anything

Suggested change
if (std::endian::native == std::endian::big) {
if constexpr (std::endian::native == std::endian::big) {

@anonrig
anonrig merged commit e730702 into main Sep 18, 2024
@anonrig
anonrig deleted the simplify_endian branch September 18, 2024 18:36
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