diff --git a/src/names/common.h b/src/names/common.h index eace20b838..61ad08297e 100644 --- a/src/names/common.h +++ b/src/names/common.h @@ -281,7 +281,7 @@ class CNameCache Serialize (Stream& s) const { /* Flip the byte order of nHeight to big endian. */ - const uint32_t nHeightFlipped = htobe32 (nHeight); + const uint32_t nHeightFlipped = htobe32_internal (nHeight); ::Serialize (s, nHeightFlipped); ::Serialize (s, name); @@ -297,7 +297,7 @@ class CNameCache ::Unserialize (s, name); /* Unflip the byte order. */ - nHeight = be32toh (nHeightFlipped); + nHeight = be32toh_internal (nHeightFlipped); } friend inline bool