Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
clone: the given repository dir should be relative to $PWD
[gitweb.git]
/
ppc
/
sha1.c
diff --git
a/ppc/sha1.c
b/ppc/sha1.c
index 5ba4fc5259b063dab6417c142938d987ee894fc0..0820398b004dd8af93a25e7fa26be60cf4dda410 100644
(file)
--- a/
ppc/sha1.c
+++ b/
ppc/sha1.c
@@
-30,7
+30,7
@@
int SHA1_Update(SHA_CTX *c, const void *ptr, unsigned long n)
unsigned long nb;
const unsigned char *p = ptr;
- c->len += n << 3;
+ c->len +=
(uint64_t)
n << 3;
while (n != 0) {
if (c->cnt || n < 64) {
nb = 64 - c->cnt;