Skip to content

Commit

Permalink
Merge pull request #9560
Browse files Browse the repository at this point in the history
eb6f12c serialization: silence warning about shifting uint8_t by 8 (jeffro256)
  • Loading branch information
luigi1111 committed Dec 23, 2024
2 parents 10000bf + eb6f12c commit 91b0a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serialization/binary_archive.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ struct binary_archive<true> : public binary_archive_base<true>
{
for (size_t i = 0; i < sizeof(T); i++) {
stream_.put((char)(v & 0xff));
if (1 < sizeof(T)) v >>= 8;
if constexpr (1 < sizeof(T)) { v >>= 8; }
}
}

Expand Down

0 comments on commit 91b0a24

Please sign in to comment.