1
0
mirror of https://github.com/git/git synced 2024-07-02 15:48:44 +00:00

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 <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nicolas Pitre 2009-08-17 20:18:23 -04:00 committed by Junio C Hamano
parent a12218572f
commit d5f6a96fa4

View File

@ -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);