git://developer.intra2net.com
/
libi2ncommon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a7a0e48
)
Use correct (unsigned) type for string positions
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Fri, 22 Oct 2010 14:50:53 +0000 (16:50 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Fri, 22 Oct 2010 14:50:53 +0000 (16:50 +0200)
src/ipfunc.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/ipfunc.cpp
b/src/ipfunc.cpp
index
12fdca5
..
6d43bf7
100644
(file)
--- 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 ||