Skip to content

fix warning when printing uint128_t#3

Merged
adamant-pwn merged 2 commits intomasterfrom
fix_warning_test_alphabet
May 27, 2024
Merged

fix warning when printing uint128_t#3
adamant-pwn merged 2 commits intomasterfrom
fix_warning_test_alphabet

Conversation

@hmusta
Copy link
Copy Markdown
Collaborator

@hmusta hmusta commented May 27, 2024

This should fix the following compile warning:

sshash/test/test_alphabet.cpp:8:45: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    8 |     os << *(reinterpret_cast<uint64_t*>(&x) + 0);
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~

@adamant-pwn adamant-pwn merged commit 6b93c03 into master May 27, 2024
@adamant-pwn adamant-pwn deleted the fix_warning_test_alphabet branch May 27, 2024 14:29
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