mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
Cast type to int before arithmetique packing
This commit is contained in:
parent
c23e3c0ec2
commit
a07a24788d
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ bool Packet::isControlPacket() const {
|
|||
|
||||
void Packet::setPacketTypeAndVersion(PacketType::Value type) {
|
||||
// Pack the packet type
|
||||
auto offset = packArithmeticallyCodedValue(type, _packet.get());
|
||||
auto offset = packArithmeticallyCodedValue((int)type, _packet.get());
|
||||
|
||||
// Pack the packet version
|
||||
auto version { versionForPacketType(type) };
|
||||
|
|
Loading…
Reference in a new issue