From 1d091ef8b3cf8063b7e0a111f5ed92eb7536a6de Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 20 May 2009 10:55:03 -0400 Subject: [PATCH] fix compiler warning MINOR --- shell/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/utils.cpp b/shell/utils.cpp index 9483321ff26..afc70940351 100644 --- a/shell/utils.cpp +++ b/shell/utils.cpp @@ -136,7 +136,7 @@ namespace mongo { } sort( ports.begin(), ports.end() ); - for( int i = 1; i < ports.size(); ++i ) + for( unsigned i = 1; i < ports.size(); ++i ) massert( "duplicate ports allocated", ports[ i - 1 ] != ports[ i ] ); BSONObjBuilder b; b.append( "", ports );