summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2008-12-19 11:00:47 -0500
committerAaron <aaron@10gen.com>2008-12-19 11:00:47 -0500
commit62253080eb744d0b668f2b1175a28b429ef3169e (patch)
tree6babd0b29558a514bbdf611bb3b4c0b538178766 /client
parent41ced12a207ace8db14d1fd9d515fab305209313 (diff)
downloadmongo-62253080eb744d0b668f2b1175a28b429ef3169e.tar.gz
Use size_t to make different library versions happy
Diffstat (limited to 'client')
-rw-r--r--client/dbclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/dbclient.cpp b/client/dbclient.cpp
index de3a15bb768..eefa3e13c25 100644
--- a/client/dbclient.cpp
+++ b/client/dbclient.cpp
@@ -56,7 +56,7 @@ bool DBClientConnection::connect(const char *_serverAddress, string& errmsg) {
if( ip.empty() )
ip = serverAddress;
- unsigned int idx = ip.find( ":" );
+ size_t idx = ip.find( ":" );
if ( idx != string::npos ){
//cout << "port string:" << ip.substr( idx ) << endl;
port = atoi( ip.substr( idx + 1 ).c_str() );