about summary refs log tree commit diff
path: root/ui-blob.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2015-03-08 16:32:17 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2015-03-09 17:38:46 +0100
commit12d3d4c3edfcf177c56ca97e5a4b0c8301ca46aa (patch)
treebae9ba5a16e0cbd0aa698d8635927b8b122a476c /ui-blob.c
parentAvoid non-ANSI function declarations (diff)
downloadcgit-pink-12d3d4c3edfcf177c56ca97e5a4b0c8301ca46aa.tar.gz
cgit-pink-12d3d4c3edfcf177c56ca97e5a4b0c8301ca46aa.zip
Avoid signed bitfields
Bitfields are only defined for unsigned types.

Detected by sparse.

Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to '')
-rw-r--r--ui-blob.c4
1 files changed, 2 insertions, 2 deletions
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,