@@ -38,17 +38,18 @@ struct object_entry {
38
38
void * delta_data ; /* cached delta (uncompressed) */
39
39
unsigned long delta_size ; /* delta data size (uncompressed) */
40
40
unsigned long z_delta_size ; /* delta data size (compressed) */
41
- unsigned int hash ; /* name hint hash */
42
41
enum object_type type ;
43
42
enum object_type in_pack_type ; /* could be delta */
43
+ uint32_t hash ; /* name hint hash */
44
44
unsigned char in_pack_header_size ;
45
- unsigned char preferred_base ; /* we do not pack this, but is available
46
- * to be used as the base object to delta
47
- * objects against.
48
- */
49
- unsigned char no_try_delta ;
50
- unsigned char tagged ; /* near the very tip of refs */
51
- unsigned char filled ; /* assigned write-order */
45
+ unsigned preferred_base :1 ; /*
46
+ * we do not pack this, but is available
47
+ * to be used as the base object to delta
48
+ * objects against.
49
+ */
50
+ unsigned no_try_delta :1 ;
51
+ unsigned tagged :1 ; /* near the very tip of refs */
52
+ unsigned filled :1 ; /* assigned write-order */
52
53
};
53
54
54
55
/*
@@ -859,9 +860,9 @@ static void rehash_objects(void)
859
860
}
860
861
}
861
862
862
- static unsigned name_hash (const char * name )
863
+ static uint32_t name_hash (const char * name )
863
864
{
864
- unsigned c , hash = 0 ;
865
+ uint32_t c , hash = 0 ;
865
866
866
867
if (!name )
867
868
return 0 ;
@@ -908,7 +909,7 @@ static int add_object_entry(const unsigned char *sha1, enum object_type type,
908
909
struct packed_git * p , * found_pack = NULL ;
909
910
off_t found_offset = 0 ;
910
911
int ix ;
911
- unsigned hash = name_hash (name );
912
+ uint32_t hash = name_hash (name );
912
913
913
914
ix = nr_objects ? locate_object_entry_hash (sha1 ) : -1 ;
914
915
if (ix >= 0 ) {
0 commit comments