Skip to content

Commit

Permalink
Fix -Wsign-compare warnings in debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Jan 19, 2024
1 parent c104a97 commit a517f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ControlStream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit a517f7c

Please sign in to comment.