diff --git a/Net/src/WebSocket.cpp b/Net/src/WebSocket.cpp index cffe8710a..3555720fe 100644 --- a/Net/src/WebSocket.cpp +++ b/Net/src/WebSocket.cpp @@ -1,7 +1,7 @@ // // WebSocket.cpp // -// $Id: //poco/1.4/Net/src/WebSocket.cpp#3 $ +// $Id: //poco/1.4/Net/src/WebSocket.cpp#4 $ // // Library: Net // Package: WebSocket @@ -107,7 +107,7 @@ void WebSocket::shutdown(Poco::UInt16 statusCode, const std::string& statusMessa Poco::BinaryWriter writer(ostr, Poco::BinaryWriter::NETWORK_BYTE_ORDER); writer << statusCode; writer.writeRaw(statusMessage); - sendFrame(buffer.begin(), ostr.charsWritten(), FRAME_FLAG_FIN | FRAME_OP_CLOSE); + sendFrame(buffer.begin(), static_cast(ostr.charsWritten()), FRAME_FLAG_FIN | FRAME_OP_CLOSE); } diff --git a/Net/src/WebSocketImpl.cpp b/Net/src/WebSocketImpl.cpp index a6824c599..4ed746f23 100644 --- a/Net/src/WebSocketImpl.cpp +++ b/Net/src/WebSocketImpl.cpp @@ -1,7 +1,7 @@ // // WebSocketImpl.cpp // -// $Id: //poco/1.4/Net/src/WebSocketImpl.cpp#1 $ +// $Id: //poco/1.4/Net/src/WebSocketImpl.cpp#2 $ // // Library: Net // Package: WebSocket @@ -110,7 +110,7 @@ int WebSocketImpl::sendBytes(const void* buffer, int length, int flags) { std::memcpy(frame.begin() + ostr.charsWritten(), buffer, length); } - _pStreamSocketImpl->sendBytes(frame.begin(), length + ostr.charsWritten()); + _pStreamSocketImpl->sendBytes(frame.begin(), length + static_cast(ostr.charsWritten())); return length; }