X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=ppc%2Fsha1.c;h=738e36c1e81def4822ccc2a66bc2761402a07f26;hb=8391c60b6e08604e7023a8fff74350d6b35974af;hp=5ba4fc5259b063dab6417c142938d987ee894fc0;hpb=0a8f4f0020cb35095005852c0797f0b90e9ebb74;p=git.git diff --git a/ppc/sha1.c b/ppc/sha1.c index 5ba4fc525..738e36c1e 100644 --- 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; @@ -50,7 +50,7 @@ int SHA1_Update(SHA_CTX *c, const void *ptr, unsigned long n) p += nb; } return 0; -} +} int SHA1_Final(unsigned char *hash, SHA_CTX *c) {