From 63dc99392c37b8875fa56a42164e928a94e0ab75 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Fri, 22 Oct 2010 16:50:53 +0200 Subject: [PATCH] Use correct (unsigned) type for string positions --- src/ipfunc.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 || -- 1.7.1