Skip to content

Commit 276e017

Browse files
committed
Merge branch 'nd/struct-pathspec'
* nd/struct-pathspec: declare 1-bit bitfields to be unsigned
2 parents a62eafb + 9ddf172 commit 276e017

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cache.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,13 +503,13 @@ extern int ie_modified(const struct index_state *, struct cache_entry *, struct
503503
struct pathspec {
504504
const char **raw; /* get_pathspec() result, not freed by free_pathspec() */
505505
int nr;
506-
int has_wildcard:1;
507-
int recursive:1;
506+
unsigned int has_wildcard:1;
507+
unsigned int recursive:1;
508508
int max_depth;
509509
struct pathspec_item {
510510
const char *match;
511511
int len;
512-
int has_wildcard:1;
512+
unsigned int has_wildcard:1;
513513
} *items;
514514
};
515515

0 commit comments

Comments
 (0)