Skip to content

Commit

Permalink
block-sha1: make the size member first in the context struct
Browse files Browse the repository at this point in the history
This is a 64-bit value, hence having it first provides a better
alignment.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nicolas Pitre authored and Junio C Hamano committed Aug 18, 2009
1 parent a122185 commit d5f6a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block-sha1/sha1.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*/

typedef struct {
unsigned long long size;
unsigned int H[5];
unsigned int W[16];
unsigned long long size;
} blk_SHA_CTX;

void blk_SHA1_Init(blk_SHA_CTX *ctx);
Expand Down

0 comments on commit d5f6a96

Please sign in to comment.