Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Dec 27, 2023
1 parent 7527a8e commit db58265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/ylt/struct_pack/packer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ class packer {
low_bytes_write_wrapper<size_type>(writer_, size);
}
else {
static_assert(!sizeof(T), "illegal size_type");
std::uint64_t sz = size;
low_bytes_write_wrapper<size_type>(writer_, sz);
}
}
else {
Expand Down

0 comments on commit db58265

Please sign in to comment.