mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
Add cast to fix passing wrong size to LittleWord
(cherry picked from commit 1459f1029d)
This commit is contained in:
@@ -581,7 +581,7 @@ int CConnectionTransportUDPBase::SendEncryptedDataChunk( const void *pChunk, int
|
||||
if ( usecTimeSinceSentLast <= (uint64)k_usecTimeSinceLastPacketMaxReasonable ) // Force unsigned comparison in case assert above fails
|
||||
{
|
||||
// Serialize it
|
||||
out.PutUint16( LittleWord( usecTimeSinceSentLast >> k_usecTimeSinceLastPacketSerializedPrecisionShift ) );
|
||||
out.PutUint16( LittleWord( (uint16)( usecTimeSinceSentLast >> k_usecTimeSinceLastPacketSerializedPrecisionShift ) ) );
|
||||
out.hdr.m_unMsgFlags |= out.hdr.kFlag_TimeSincePrev;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user