From: Thomas Jarosch Date: Fri, 22 Oct 2010 14:50:53 +0000 (+0200) Subject: Use correct (unsigned) type for string positions X-Git-Tag: v2.6~98^2 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=63dc99392c37b8875fa56a42164e928a94e0ab75;p=libi2ncommon Use correct (unsigned) type for string positions --- diff --git a/src/ipfunc.cpp b/src/ipfunc.cpp index 12fdca5..6d43bf7 100644 --- a/src/ipfunc.cpp +++ b/src/ipfunc.cpp @@ -37,7 +37,7 @@ void IP_RANGE::swap(IP_RANGE& other) // can decode IP, IP-IP (as range) and IP/MASK (as network) void IP_RANGE::load(const std::string& ip) { - int delim_pos; + string::size_type delim_pos; struct in_addr ia_ip1, ia_ip2; if ((delim_pos=ip.find('/')) != string::npos ||