mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-02-16 02:21:07 +00:00
Fix -Wsign-compare warnings in debug build
This commit is contained in:
@@ -534,7 +534,7 @@ static bool encryptControlMessage(PNVCTL_ENCRYPTED_PACKET_HEADER encPacket, PNVC
|
||||
packet->type = LE16(packet->type);
|
||||
packet->payloadLength = LE16(packet->payloadLength);
|
||||
|
||||
LC_ASSERT(ivSize <= sizeof(iv));
|
||||
LC_ASSERT(ivSize <= (int)sizeof(iv));
|
||||
LC_ASSERT(ivSize == 12 || ivSize == 16);
|
||||
return PltEncryptMessage(encryptionCtx, ALGORITHM_AES_GCM, 0,
|
||||
(unsigned char*)StreamConfig.remoteInputAesKey, sizeof(StreamConfig.remoteInputAesKey),
|
||||
@@ -596,7 +596,7 @@ static bool decryptControlMessageToV1(PNVCTL_ENCRYPTED_PACKET_HEADER encPacket,
|
||||
return false;
|
||||
}
|
||||
|
||||
LC_ASSERT(ivSize <= sizeof(iv));
|
||||
LC_ASSERT(ivSize <= (int)sizeof(iv));
|
||||
LC_ASSERT(ivSize == 12 || ivSize == 16);
|
||||
if (!PltDecryptMessage(decryptionCtx, ALGORITHM_AES_GCM, 0,
|
||||
(unsigned char*)StreamConfig.remoteInputAesKey, sizeof(StreamConfig.remoteInputAesKey),
|
||||
|
||||
Reference in New Issue
Block a user