Skip to content

Commit

Permalink
Fix compilation of byteswap fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Oct 29, 2023
1 parent b0b97f1 commit 12d2b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/inc/tactile/core/platform/bits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ template <std::integral IntType>
#else
using ByteArray = Array<uint8, sizeof(IntType)>;

const auto bytes = interpret_as<ByteArray>(value);
auto bytes = interpret_as<ByteArray>(value);
std::reverse(bytes.begin(), bytes.end());

return interpret_as<IntType>(bytes);
Expand Down

0 comments on commit 12d2b34

Please sign in to comment.