diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index 9940829585d..e29c31702ba 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -234,7 +234,7 @@ void StreamWrap::OnReadCommon(uv_stream_t* handle, ssize_t nread, return; } - assert(nread <= buf.len); + assert(static_cast(nread) <= buf.len); if (handle_that_last_alloced == handle) { slab_used -= (buf.len - nread);