From 0581f5cb604f12d4467dfc0728ea62005ae76990 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 17 Jun 2013 01:23:57 +0200 Subject: [PATCH] stream_wrap: fix signed/unsigned comparison warning --- 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 51f57f1f2b7..adee3d62e11 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -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);