diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2010-08-01 18:48:40 +0200 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2010-08-01 18:48:40 +0200 |
commit | 2f6c0e435cbceb60c219f9f1cd925ae4ddffd4d9 (patch) | |
tree | e4f9dc550299af41da8967518514bdf5091f0e06 /src/misc.cpp | |
parent | cb3a18e524a07a28ef608cf35c843d402c3159bb (diff) |
some code cleanup in misc.cpp and fixed a small typo
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index cac6b8b08..263d45b5f 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -1308,9 +1308,9 @@ Anope::string Anope::Hex(const Anope::string &data) { const char hextable[] = "0123456789abcdef"; - int l = data.length(); + size_t l = data.length(); Anope::string rv; - for(int i=0; i < l; i++) + for (size_t i = 0; i < l; ++i) { unsigned char c = data[i]; rv += hextable[c >> 4]; |