Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Nov 21, 2023
1 parent 869fea3 commit d277e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ylt/struct_pack/unpacker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ class unpacker {
constexpr struct_pack::errc STRUCT_PACK_INLINE deserialize_one_fast_varint(
std::bitset<bitset_width> &vec, int &i, Arg &item) {
if constexpr (varint_t<Arg, parent_tag>) {
constexpr auto real_width = std::min(width, sizeof(Arg));
constexpr auto real_width = (std::min)(width, sizeof(Arg));
if (!vec[i++])
return {};
else if constexpr (!no_skip) {
Expand Down

0 comments on commit d277e80

Please sign in to comment.