mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 00:45:49 +00:00
Fix signed/unsigned mismatch warnings
This commit is contained in:
parent
92abf6e11d
commit
cbd0ec1b25
@ -184,11 +184,11 @@ static bool unsealRtspMessage(char* rawMessage, int rawMessageLen, PRTSP_MESSAGE
|
|||||||
}
|
}
|
||||||
|
|
||||||
len = typeAndLen & ~ENCRYPTED_RTSP_BIT;
|
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");
|
Limelog("Rejecting partial encrypted RTSP message\n");
|
||||||
return false;
|
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");
|
Limelog("Rejecting encrypted RTSP message with excess data\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user