diff options
author | Andy Polyakov <appro@openssl.org> | 2008-12-29 13:35:49 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-12-29 13:35:49 +0100 |
commit | 5cabcf96e77bcf6d23bfb3ec32c9ea37100578c6 (patch) | |
tree | 2c2e0f123d4bc953e75e9919488c92b78b5c75b4 /crypto/sha | |
parent | Die earlier if hash is NULL. (Coverity IDs 137 & 138). (diff) | |
download | openssl-5cabcf96e77bcf6d23bfb3ec32c9ea37100578c6.tar.xz openssl-5cabcf96e77bcf6d23bfb3ec32c9ea37100578c6.zip |
Fix "possible loss of data" Win64 compiler warnings.
Diffstat (limited to 'crypto/sha')
-rw-r--r-- | crypto/sha/sha512.c | 2 |
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 { |