Fixed sign-compare warnings
authorArmin Novak <armin.novak@thincast.com>
Thu, 7 Feb 2019 13:33:39 +0000 (14:33 +0100)
committerArmin Novak <armin.novak@thincast.com>
Fri, 5 Apr 2019 07:13:24 +0000 (09:13 +0200)
channels/encomsp/server/encomsp_main.c

index e1b2248..0d3e3e7 100644 (file)
@@ -110,7 +110,7 @@ static UINT encomsp_recv_change_participant_control_level_pdu(
 
        if ((beg + header->Length) > end)
        {
-               if (Stream_GetRemainingLength(s) < ((beg + header->Length) - end))
+               if (Stream_GetRemainingLength(s) < (size_t)((beg + header->Length) - end))
                {
                        WLog_ERR(TAG, "Not enough data!");
                        return ERROR_INVALID_DATA;