Add explicit cast to make MSVC happy

This commit is contained in:
Cameron Gutman committed 2026-11-01 15:11:58 -06:00
1 parent 7d61e2d95f
commit f050b13b6a
1 file changed
+1 -1
+1 -1
View File
@@ -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