mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-20 07:24:01 +00:00
Fix signed/unsigned mismatch warnings
This commit is contained in:
1 parent
92abf6e11d
commit
cbd0ec1b25
1 file changed
+2
-2
@@ -184,11 +184,11 @@ static bool unsealRtspMessage(char* rawMessage, int rawMessageLen, PRTSP_MESSAGE
|
||||
}
|
||||
|
||||
len = typeAndLen & ~ENCRYPTED_RTSP_BIT;
|
||||
if (len + sizeof(ENC_RTSP_HEADER) > rawMessageLen) {
|
||||
if (len + sizeof(ENC_RTSP_HEADER) > (uint32_t)rawMessageLen) {
|
||||
Limelog("Rejecting partial encrypted RTSP message\n");
|
||||
return false;
|
||||
}
|
||||
else if (len + sizeof(ENC_RTSP_HEADER) < rawMessageLen) {
|
||||
else if (len + sizeof(ENC_RTSP_HEADER) < (uint32_t)rawMessageLen) {
|
||||
Limelog("Rejecting encrypted RTSP message with excess data\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user