Bitfields are only defined for unsigned types.
Detected by sparse.
Signed-off-by: John Keeping <john@keeping.me.uk>
struct walk_tree_context {
const char *match_path;
unsigned char *matched_sha1;
- int found_path:1;
- int file_only:1;
+ unsigned int found_path:1;
+ unsigned int file_only:1;
};
static int walk_tree(const unsigned char *sha1, struct strbuf *base,
unsigned int removed;
unsigned long old_size;
unsigned long new_size;
- int binary:1;
+ unsigned int binary:1;
} *items;
static int use_ssdiff = 0;