From 12d3d4c3edfcf177c56ca97e5a4b0c8301ca46aa Mon Sep 17 00:00:00 2001 From: John Keeping Date: Sun, 8 Mar 2015 16:32:17 +0000 Subject: Avoid signed bitfields Bitfields are only defined for unsigned types. Detected by sparse. Signed-off-by: John Keeping --- ui-blob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui-blob.c') diff --git a/ui-blob.c b/ui-blob.c index a025bca..388a017 100644 --- a/ui-blob.c +++ b/ui-blob.c @@ -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, -- cgit v1.2.3-24-g4f1b