Use correct (unsigned) type for string positions
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 22 Oct 2010 14:50:53 +0000 (16:50 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 22 Oct 2010 14:50:53 +0000 (16:50 +0200)
src/ipfunc.cpp

index 12fdca5..6d43bf7 100644 (file)
@@ -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 ||