Skip to content

Commit

Permalink
Fix type issue that causes incorrect writing of integers
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhancocks committed Sep 27, 2023
1 parent a617885 commit 3618f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/libData/writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ namespace data
template<typename T, typename std::enable_if<std::is_arithmetic<T>::value>::type* = nullptr>
auto write_integer(T value, std::size_t count = 1, std::size_t size = sizeof(T)) -> void
{
std::uint64_t swapped = swap(value, native_byte_order(), m_data->byte_order());
T swapped = swap(value, native_byte_order(), m_data->byte_order());

ensure_required_space(position(), size * count);
auto ptr = m_data->template get<uint8_t *>(position());
Expand Down

0 comments on commit 3618f7e

Please sign in to comment.