fix PingType_t cast for icePingPacket

This commit is contained in:
Stephen Birarda 2015-07-07 17:53:05 -07:00
parent e0aea7f955
commit 61960c80c8

View file

@ -559,7 +559,7 @@ std::unique_ptr<NLPacket> constructICEPingPacket(PingType_t pingType, const QUui
auto icePingPacket = NLPacket::create(PacketType::ICEPing, packetSize);
icePingPacket->write(iceID.toRfc4122());
icePingPacket->write(&pingType, sizeof(pingType));
icePingPacket->write(reinterpret_cast<char *>(&pingType), sizeof(pingType));
return icePingPacket;
}