mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-28 16:54:32 +00:00
Add explicit cast to make MSVC happy
This commit is contained in:
1 parent
7d61e2d95f
commit
f050b13b6a
1 file changed
+1
-1
+1
-1
@@ -823,7 +823,7 @@ static bool sendMessageEnet(short ptype, unsigned int paylen, const void* payloa
|
||||
|
||||
encPacket = (PNVCTL_ENCRYPTED_PACKET_HEADER)enetPacket->data;
|
||||
encPacket->encryptedHeaderType = 0x0001;
|
||||
encPacket->length = sizeof(encPacket->seq) + AES_GCM_TAG_LENGTH + sizeof(*packet) + paylen;
|
||||
encPacket->length = (unsigned short)(sizeof(encPacket->seq) + AES_GCM_TAG_LENGTH + sizeof(*packet) + paylen);
|
||||
encPacket->seq = currentEnetSequenceNumber++;
|
||||
|
||||
// Construct the plaintext data for encryption
|
||||
|
||||
Reference in new issue
Block a user