From b4d69afc18ae31d484139723fa690062baca9a3d Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Nov 2006 15:22:17 +0000 Subject: dont use local vars and lose state git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5692 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/hashcomp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 0188f82b6..e1dbad06f 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -417,8 +417,8 @@ long irc::portparser::GetToken() { std::string sbegin = x.substr(0, dash); std::string send = x.substr(dash+1, x.length()); - long range_begin = atoi(sbegin.c_str()); - long range_end = atoi(send.c_str()); + range_begin = atoi(sbegin.c_str()); + range_end = atoi(send.c_str()); if ((range_begin > 0) && (range_end > 0) && (range_begin < 65536) && (range_end < 65536) && (range_begin < range_end)) { -- cgit v1.2.3