mirror of
https://github.com/monero-project/monero.git
synced 2024-12-24 11:59:23 -05:00
Merge pull request #9560
eb6f12c
serialization: silence warning about shifting uint8_t by 8 (jeffro256)
This commit is contained in:
commit
91b0a249e3
@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user