mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-07-01 07:15:39 +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;
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user