From 2ce8af23c74ded48358dc97bb5b726bd9c44dbb5 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sun, 28 Aug 2022 22:29:11 +0200 Subject: [PATCH] Fix silly warning in newest compilers --- src/WebSocketContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebSocketContext.h b/src/WebSocketContext.h index 9da1180..7200693 100644 --- a/src/WebSocketContext.h +++ b/src/WebSocketContext.h @@ -230,7 +230,7 @@ private: } /* Same here, we do not care for any particular smart allocation scheme */ - webSocketData->fragmentBuffer.resize(webSocketData->fragmentBuffer.length() - webSocketData->controlTipLength); + webSocketData->fragmentBuffer.resize((unsigned int) webSocketData->fragmentBuffer.length() - webSocketData->controlTipLength); webSocketData->controlTipLength = 0; } }