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 c55e05c commit 4146046
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/ylt/struct_pack/packer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,12 @@ STRUCT_PACK_MAY_INLINE void serialize_to(Writer &writer,
o.template serialize<conf, 4>(args...);
break;
case 3:
o.template serialize<conf, 8>(args...);
if constexpr (sizeof(std::size_t) >= 8) {
o.template serialize<conf, 8>(args...);
}
else {
unreachable();
}
break;
#else
case 1:
Expand Down

0 comments on commit 4146046

Please sign in to comment.