From 93ad9a20924d7dd00f0287269b44443721b32fd2 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 7 Feb 2019 14:33:39 +0100 Subject: [PATCH] Fixed sign-compare warnings --- channels/encomsp/server/encomsp_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/encomsp/server/encomsp_main.c b/channels/encomsp/server/encomsp_main.c index e1b22482a..0d3e3e7cd 100644 --- a/channels/encomsp/server/encomsp_main.c +++ b/channels/encomsp/server/encomsp_main.c @@ -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;