Skip to content

Commit

Permalink
block-sha1/sha1.c: have SP around arithmetic operators
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Oct 16, 2013
1 parent 5f050e3 commit 6b2dd0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block-sha1/sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ void blk_SHA1_Final(unsigned char hashout[20], blk_SHA_CTX *ctx)
padlen[1] = htonl((uint32_t)(ctx->size << 3));

i = ctx->size & 63;
blk_SHA1_Update(ctx, pad, 1+ (63 & (55 - i)));
blk_SHA1_Update(ctx, pad, 1 + (63 & (55 - i)));
blk_SHA1_Update(ctx, padlen, 8);

/* Output hash */
for (i = 0; i < 5; i++)
put_be32(hashout + i*4, ctx->H[i]);
put_be32(hashout + i * 4, ctx->H[i]);
}

0 comments on commit 6b2dd0e

Please sign in to comment.