diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-11 15:22:17 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-11 15:22:17 +0000 |
commit | b4d69afc18ae31d484139723fa690062baca9a3d (patch) | |
tree | 542c4bfcb9966f3f3983b601cfe31e11dbf37e56 | |
parent | 0b3cebdb8cf3146580e8cd918ff764fc8c147d1e (diff) |
dont use local vars and lose state
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5692 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/hashcomp.cpp | 4 |
1 files 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)) { |