Avoid signed bitfields

Bitfields are only defined for unsigned types.

Detected by sparse.

Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
John Keeping 2015-03-08 16:32:17 +00:00 committed by Jason A. Donenfeld
orang tua e3d3fffdd4
melakukan 12d3d4c3ed
2 mengubah file dengan 3 tambahan dan 3 penghapusan

Melihat File

@ -14,8 +14,8 @@
struct walk_tree_context { struct walk_tree_context {
const char *match_path; const char *match_path;
unsigned char *matched_sha1; unsigned char *matched_sha1;
int found_path:1; unsigned int found_path:1;
int file_only:1; unsigned int file_only:1;
}; };
static int walk_tree(const unsigned char *sha1, struct strbuf *base, static int walk_tree(const unsigned char *sha1, struct strbuf *base,

Melihat File

@ -31,7 +31,7 @@ static struct fileinfo {
unsigned int removed; unsigned int removed;
unsigned long old_size; unsigned long old_size;
unsigned long new_size; unsigned long new_size;
int binary:1; unsigned int binary:1;
} *items; } *items;
static int use_ssdiff = 0; static int use_ssdiff = 0;