Skip to content
Permalink
Browse files

Getting rid of a warning

  • Loading branch information...
frozenblit committed Aug 27, 2019
1 parent 71c169e commit f382a8fb42445977349adf2fd5c3145cd844c39b
Showing with 1 addition and 1 deletion.
  1. +1 −1 pol-core/clib/network/wnsckt.cpp
@@ -679,7 +679,7 @@ bool SocketLineReader::try_readline( std::string& out, bool* timed_out )
return false;
}
int bytes_read = -1;
if ( !_socket.recvdata_nowait( buffer.data(), buffer.size(), &bytes_read ) )
if ( !_socket.recvdata_nowait( buffer.data(), static_cast<unsigned>(buffer.size()), &bytes_read ) )
return false;

// store current line size so we don't need to search from the beginning again

0 comments on commit f382a8f

Please sign in to comment.
You can’t perform that action at this time.