From f2840507e11f4220e606b99bb2e895acd5cb6811 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 9 Apr 2014 20:39:05 +0000 Subject: Steam: fixed errors in x64 git-svn-id: http://svn.miranda-ng.org/main/trunk@8904 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Steam/src/steam_utils.cpp') diff --git a/protocols/Steam/src/steam_utils.cpp b/protocols/Steam/src/steam_utils.cpp index 2f2caca443..821d6ef3e1 100644 --- a/protocols/Steam/src/steam_utils.cpp +++ b/protocols/Steam/src/steam_utils.cpp @@ -49,7 +49,7 @@ int CSteamProto::MirandaToSteamState(int status) int CSteamProto::RsaEncrypt(const SteamWebApi::RsaKeyApi::RsaKey &rsaKey, const char *data, DWORD dataSize, BYTE *encryptedData, DWORD &encryptedSize) { const char *pszModulus = rsaKey.GetModulus(); - DWORD cchModulus = strlen(pszModulus); + DWORD cchModulus = (DWORD)strlen(pszModulus); // convert hex string to byte array DWORD cbLen = 0, dwSkip = 0, dwFlags = 0; @@ -62,7 +62,7 @@ int CSteamProto::RsaEncrypt(const SteamWebApi::RsaKeyApi::RsaKey &rsaKey, const return GetLastError(); // reverse byte array, because of microsoft - for (int i = 0; i < cbLen / 2; ++i) + for (int i = 0; i < (int)(cbLen / 2); ++i) { BYTE temp = pbBuffer[cbLen - i - 1]; pbBuffer[cbLen - i - 1] = pbBuffer[i]; @@ -117,7 +117,7 @@ int CSteamProto::RsaEncrypt(const SteamWebApi::RsaKeyApi::RsaKey &rsaKey, const return GetLastError(); // reverse byte array again - for (int i = 0; i < encryptedSize / 2; ++i) + for (int i = 0; i < (int)(encryptedSize / 2); ++i) { BYTE temp = encryptedData[encryptedSize - i - 1]; encryptedData[encryptedSize - i - 1] = encryptedData[i]; -- cgit v1.2.3