Skip to content

Commit f5ccbb1

Browse files
author
Ognjen Sobajic
committed
Fixing the 64-bit build on the server.
1 parent e1b2448 commit f5ccbb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Release/src/http/client/http_linux.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,14 +520,14 @@ namespace web { namespace http
520520
{
521521
if (ctx->m_ssl_stream)
522522
{
523-
int size_to_read = 0;
523+
size_t size_to_read = 0;
524524
if (ctx->m_response_buf.size() < size)
525525
size_to_read = size - ctx->m_response_buf.size();
526526
boost::asio::async_read(*ctx->m_ssl_stream, ctx->m_response_buf, boost::asio::transfer_at_least(size_to_read), handler);
527527
}
528528
else
529529
{
530-
int size_to_read = 0;
530+
size_t size_to_read = 0;
531531
if (ctx->m_response_buf.size() < size)
532532
size_to_read = size - ctx->m_response_buf.size();
533533
boost::asio::async_read(*ctx->m_socket, ctx->m_response_buf, boost::asio::transfer_at_least(size_to_read), handler);

0 commit comments

Comments
 (0)