summaryrefslogtreecommitdiffstats
path: root/crypto/sha
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-12-29 12:35:49 +0000
committerAndy Polyakov <appro@openssl.org>2008-12-29 12:35:49 +0000
commit5cabcf96e77bcf6d23bfb3ec32c9ea37100578c6 (patch)
tree2c2e0f123d4bc953e75e9919488c92b78b5c75b4 /crypto/sha
parent85e878f224f16d21c09b1916c72ba0458335df7b (diff)
Fix "possible loss of data" Win64 compiler warnings.
Diffstat (limited to 'crypto/sha')
-rw-r--r--crypto/sha/sha512.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sha/sha512.c b/crypto/sha/sha512.c
index 832cae24f1..d1aa7614b2 100644
--- a/crypto/sha/sha512.c
+++ b/crypto/sha/sha512.c
@@ -240,7 +240,7 @@ int SHA512_Update (SHA512_CTX *c, const void *_data, size_t len)
if (len < n)
{
- memcpy (p+c->num,data,len), c->num += len;
+ memcpy (p+c->num,data,len), c->num += (unsigned int)len;
return 1;
}
else {