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; } }