Skip to content

Commit d5f6a96

Browse files
Nicolas Pitregitster
authored andcommitted
block-sha1: make the size member first in the context struct
This is a 64-bit value, hence having it first provides a better alignment. Signed-off-by: Nicolas Pitre <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a122185 commit d5f6a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block-sha1/sha1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
*/
66

77
typedef struct {
8+
unsigned long long size;
89
unsigned int H[5];
910
unsigned int W[16];
10-
unsigned long long size;
1111
} blk_SHA_CTX;
1212

1313
void blk_SHA1_Init(blk_SHA_CTX *ctx);

0 commit comments

Comments
 (0)