mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Fix a bunch of conversion warnings #197
This commit is contained in:
+3
-3
@@ -421,8 +421,8 @@ private:
|
||||
|
||||
sPackedHex.clear();
|
||||
|
||||
unsigned int len = sHex.length() / 2;
|
||||
for (unsigned int i = 0; i < len; i++) {
|
||||
CString::size_type len = sHex.length() / 2;
|
||||
for (CString::size_type i = 0; i < len; i++) {
|
||||
unsigned int value;
|
||||
int n = sscanf(&sHex[i*2], "%02x", &value);
|
||||
if (n != 1 || value > 0xff)
|
||||
@@ -441,7 +441,7 @@ private:
|
||||
sRealKey = sKey;
|
||||
|
||||
CString sOuterKey, sInnerKey;
|
||||
unsigned int iKeyLength = sRealKey.length();
|
||||
CString::size_type iKeyLength = sRealKey.length();
|
||||
for (unsigned int i = 0; i < 64; i++) {
|
||||
int r = (i < iKeyLength ? sRealKey[i] : 0);
|
||||
sOuterKey += r ^ 0x5c;
|
||||
|
||||
Reference in New Issue
Block a user