diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-02 01:49:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-02 01:49:22 +0300 |
commit | bebb93a423a9f6bc7a2b7a610548da6ceaacee97 (patch) | |
tree | bad44d40e229f19dd08debe9cae4e0c05a627765 /src/utils/sha256.cpp | |
parent | e687104042fb89b3609e850e466d5c8441252f9b (diff) | |
download | plus-bebb93a423a9f6bc7a2b7a610548da6ceaacee97.tar.gz plus-bebb93a423a9f6bc7a2b7a610548da6ceaacee97.tar.bz2 plus-bebb93a423a9f6bc7a2b7a610548da6ceaacee97.tar.xz plus-bebb93a423a9f6bc7a2b7a610548da6ceaacee97.zip |
Fix compilation with manaserv support.
Diffstat (limited to 'src/utils/sha256.cpp')
-rw-r--r-- | src/utils/sha256.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/sha256.cpp b/src/utils/sha256.cpp index a56f6ec9a..21ded486b 100644 --- a/src/utils/sha256.cpp +++ b/src/utils/sha256.cpp @@ -279,7 +279,7 @@ std::string SHA256Hash(const char *src, int len) unsigned char bytehash[SHA256_DIGEST_SIZE]; SHA256Context ctx; SHA256Init(&ctx); - SHA256Update(&ctx, static_cast<unsigned char *>(src), + SHA256Update(&ctx, (unsigned char *)(src), static_cast<unsigned int>(len)); SHA256Final(&ctx, bytehash); // Convert it to hex |