Fix a bunch of conversion warnings #197

This commit is contained in:
Kyle Fuller
2012-08-13 05:02:18 +07:00
parent e54f423ace
commit 67299ebfa8
36 changed files with 168 additions and 155 deletions
+3 -3
View File
@@ -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;