diff options
-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 |