Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
stream_wrap: fix signedness compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Mar 30, 2012
1 parent 7abbda8 commit 0f0557d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream_wrap.cc
Expand Up @@ -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);
Expand Down

0 comments on commit 0f0557d

Please sign in to comment.