Index: Source/modules/websockets/NewWebSocketChannelImpl.cpp |
diff --git a/Source/modules/websockets/NewWebSocketChannelImpl.cpp b/Source/modules/websockets/NewWebSocketChannelImpl.cpp |
index c7f9e9baefebb695f4a25310e8cc5aeb7c57cccf..f1dc2b3991e0629612e07b721222f5e56b2cca69 100644 |
--- a/Source/modules/websockets/NewWebSocketChannelImpl.cpp |
+++ b/Source/modules/websockets/NewWebSocketChannelImpl.cpp |
@@ -297,7 +297,7 @@ void NewWebSocketChannelImpl::sendInternal() |
WebSocketHandle::MessageType type = |
m_sentSizeOfTopMessage ? WebSocketHandle::MessageTypeContinuation : WebSocketHandle::MessageTypeText; |
size_t size = std::min(static_cast<size_t>(m_sendingQuota), message.text.length() - m_sentSizeOfTopMessage); |
- final = (m_sendingQuota == size); |
+ final = (static_cast<size_t>(m_sendingQuota) == size); |
m_handle->send(final, type, message.text.data() + m_sentSizeOfTopMessage, size); |
m_sentSizeOfTopMessage += size; |
m_sendingQuota -= size; |
@@ -311,7 +311,7 @@ void NewWebSocketChannelImpl::sendInternal() |
WebSocketHandle::MessageType type = |
m_sentSizeOfTopMessage ? WebSocketHandle::MessageTypeContinuation : WebSocketHandle::MessageTypeBinary; |
size_t size = std::min(static_cast<size_t>(m_sendingQuota), message.arrayBuffer->byteLength() - m_sentSizeOfTopMessage); |
- final = (m_sendingQuota == size); |
+ final = (static_cast<size_t>(m_sendingQuota) == size); |
m_handle->send(final, type, static_cast<const char*>(message.arrayBuffer->data()) + m_sentSizeOfTopMessage, size); |
m_sentSizeOfTopMessage += size; |
m_sendingQuota -= size; |