stream_wrap: fix signed/unsigned comparison warning

This commit is contained in:
Ben Noordhuis 2013-06-17 01:23:57 +02:00
parent 70a75cd41e
commit 0581f5cb60

View File

@ -576,7 +576,7 @@ int StreamWrapCallbacks::DoWrite(WriteWrap* w,
if (!r) {
size_t bytes = 0;
for (int i = 0; i < count; i++)
for (size_t i = 0; i < count; i++)
bytes += bufs[i].len;
if (wrap_->stream_->type == UV_TCP) {
NODE_COUNT_NET_BYTES_SENT(bytes);