Cast type to int before arithmetique packing

This commit is contained in:
Atlante45 2015-07-07 10:36:15 -07:00
parent c23e3c0ec2
commit a07a24788d

View file

@ -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) };