mirror of
https://git.zx2c4.com/cgit
synced 2024-11-25 01:48:41 +00:00
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:
parent
e3d3fffdd4
commit
12d3d4c3ed
@ -14,8 +14,8 @@
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user