summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-02 01:49:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-02 01:49:22 +0300
commitbebb93a423a9f6bc7a2b7a610548da6ceaacee97 (patch)
treebad44d40e229f19dd08debe9cae4e0c05a627765 /src
parente687104042fb89b3609e850e466d5c8441252f9b (diff)
downloadManaVerse-bebb93a423a9f6bc7a2b7a610548da6ceaacee97.tar.gz
ManaVerse-bebb93a423a9f6bc7a2b7a610548da6ceaacee97.tar.bz2
ManaVerse-bebb93a423a9f6bc7a2b7a610548da6ceaacee97.tar.xz
ManaVerse-bebb93a423a9f6bc7a2b7a610548da6ceaacee97.zip
Fix compilation with manaserv support.
Diffstat (limited to 'src')
-rw-r--r--src/utils/sha256.cpp2
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