diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-03-30 16:52:24 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-03-30 16:52:38 +0400 |
commit | 0f0557d78dfa3d4f92daf4558570384ce73b0953 (patch) | |
tree | 7b1d6d132a8a580fa412fe513ad95e2a89ca034a | |
parent | 7abbda8ba2ecabd93b11388bc593ad94da2546bc (diff) |
stream_wrap: fix signedness compiler warnings
-rw-r--r-- | src/stream_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<size_t>(nread) <= buf.len); if (handle_that_last_alloced == handle) { slab_used -= (buf.len - nread); |