From: ThorstenB Date: Fri, 4 May 2012 21:13:54 +0000 (+0200) Subject: Fix signed vs unsigned compiler warnings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=067ff4f8edfd157cfc3f7e232f1aa4ad27171fe5;p=simgear.git Fix signed vs unsigned compiler warnings --- diff --git a/simgear/io/test_HTTP.cxx b/simgear/io/test_HTTP.cxx index fc2fe869..dcafdb42 100644 --- a/simgear/io/test_HTTP.cxx +++ b/simgear/io/test_HTTP.cxx @@ -134,7 +134,7 @@ public: method = line[0]; path = line[1]; - int queryPos = path.find('?'); + string::size_type queryPos = path.find('?'); if (queryPos != string::npos) { parseArgs(path.substr(queryPos + 1)); path = path.substr(0, queryPos); @@ -151,8 +151,8 @@ public: return; } - int colonPos = buffer.find(':'); - if (colonPos < 0) { + string::size_type colonPos = buffer.find(':'); + if (colonPos == string::npos) { cerr << "malformed HTTP response header:" << buffer << endl; buffer.clear(); return; @@ -173,8 +173,8 @@ public: { string_list argv = strutils::split(argData, "&"); for (unsigned int a=0; a