mirror of
https://github.com/anope/anope.git
synced 2026-06-25 14:26:39 +02:00
some code cleanup in misc.cpp and fixed a small typo
This commit is contained in:
+2
-2
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user