Skip to content

Commit b0fb7f2

Browse files
committed
Remove endianness from linkage<>.
1 parent 8252726 commit b0fb7f2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/bitcoin/database/impl/primitives/linkage.ipp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ inline CLASS& CLASS::operator=(const bytes& other) NOEXCEPT
5555
{
5656
value = 0;
5757
system::unsafe_array_cast<uint8_t, Size>(&value) = other;
58-
value = system::native_from_little_end(value);
58+
////value = system::native_from_little_end(value);
5959
return *this;
6060
}
6161

@@ -89,8 +89,8 @@ constexpr CLASS::operator CLASS::integer() const NOEXCEPT
8989
TEMPLATE
9090
inline CLASS::operator CLASS::bytes() const NOEXCEPT
9191
{
92-
const auto little = system::native_to_little_end(value);
93-
return system::unsafe_array_cast<uint8_t, Size>(&little);
92+
////const auto little = system::native_to_little_end(value);
93+
return system::unsafe_array_cast<uint8_t, Size>(&value);
9494
}
9595

9696
TEMPLATE

0 commit comments

Comments
 (0)