Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Nov 27, 2024
1 parent 3b70db3 commit c738195
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iguana/pb_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ template <uint64_t v, typename Writer, size_t... I>
IGUANA_INLINE void append_varint_u32(Writer& writer,
std::index_sequence<I...>) {
uint8_t temp = 0;
((temp = static_cast<uint8_t>(v >> (7 * I)), writer.write(&temp, 1)), ...);
((temp = static_cast<uint8_t>(v >> (7 * I)),
writer.write((const char*)&temp, 1)),
...);
}

template <uint32_t v, typename Writer>
Expand Down

0 comments on commit c738195

Please sign in to comment.