Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-03-30 16:52:24 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-03-30 16:52:38 +0400
commit0f0557d78dfa3d4f92daf4558570384ce73b0953 (patch)
tree7b1d6d132a8a580fa412fe513ad95e2a89ca034a
parent7abbda8ba2ecabd93b11388bc593ad94da2546bc (diff)
stream_wrap: fix signedness compiler warnings
-rw-r--r--src/stream_wrap.cc2
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);