mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-02 08:09:35 +02:00
Remove superfluous static_cast
This commit is contained in:
parent
4f2f16db33
commit
9dc967a671
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ protected:
|
|||
|
||||
void writeVal(std::ostream& stream, const message_type& val) const
|
||||
{
|
||||
uint16_t v = static_cast<uint16_t>(SWAP_16(static_cast<uint16_t>(val)));
|
||||
uint16_t v = SWAP_16(static_cast<uint16_t>(val));
|
||||
stream.write(reinterpret_cast<const char*>(&v), sizeof(uint16_t));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue