aboutsummaryrefslogtreecommitdiff
path: root/crypt/sha512.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-08-15 13:59:59 -0700
committerRoland McGrath <roland@hack.frob.com>2012-08-15 13:59:59 -0700
commitdd924cd7cc3ef8c9da103d883dd784815e388976 (patch)
tree042c0f4d1296aa174181972e60a8ec71cca03da1 /crypt/sha512.c
parent1afbc875e31e87c2eb8a0cdaf48bc36d3edb363d (diff)
downloadglibc-dd924cd7cc3ef8c9da103d883dd784815e388976.zip
glibc-dd924cd7cc3ef8c9da103d883dd784815e388976.tar.gz
glibc-dd924cd7cc3ef8c9da103d883dd784815e388976.tar.bz2
Fix last sha512.c change to avoid compiler warning.
Diffstat (limited to 'crypt/sha512.c')
-rw-r--r--crypt/sha512.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypt/sha512.c b/crypt/sha512.c
index bec7bb3..0675c94 100644
--- a/crypt/sha512.c
+++ b/crypt/sha512.c
@@ -125,7 +125,7 @@ sha512_process_block (const void *buffer, size_t len, struct sha512_ctx *ctx)
#else
uint64_t lolen = len;
ctx->total[TOTAL128_low] += lolen;
- ctx->total[TOTAL128_high] += ((len >> 63 >> 1)
+ ctx->total[TOTAL128_high] += ((len >> 31 >> 31 >> 2)
+ (ctx->total[TOTAL128_low] < lolen));
#endif