From 0f0557d78dfa3d4f92daf4558570384ce73b0953 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 30 Mar 2012 14:52:24 +0200 Subject: [PATCH] stream_wrap: fix signedness compiler warnings --- src/stream_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);