diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2024-02-27 18:39:22 +0000 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2024-02-28 13:42:38 +0000 |
commit | 86b7f28d6c507155a9d3a15487ee883989b88943 (patch) | |
tree | fe1bf5c7c64ba059ddc3c98729f7901dbe8b5b83 /src/i2p.cpp | |
parent | 432b18ca8d0654318a8d882b28b20af2cb2d2e5d (diff) | |
download | bitcoin-86b7f28d6c507155a9d3a15487ee883989b88943.tar.xz |
serialization: use internal endian conversion functions
These replace our platform-specific mess in favor of c++20 endian detection
via std::endian and internal byteswap functions when necessary.
They no longer rely on autoconf detection.
Diffstat (limited to 'src/i2p.cpp')
-rw-r--r-- | src/i2p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i2p.cpp b/src/i2p.cpp index c891562d00..4b79a6826b 100644 --- a/src/i2p.cpp +++ b/src/i2p.cpp @@ -392,7 +392,7 @@ Binary Session::MyDestination() const } memcpy(&cert_len, &m_private_key.at(CERT_LEN_POS), sizeof(cert_len)); - cert_len = be16toh(cert_len); + cert_len = be16toh_internal(cert_len); const size_t dest_len = DEST_LEN_BASE + cert_len; |