mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge pull request #6699 from libgit2/ethomson/bitfield
examples: use unsigned int for bitfields
This commit is contained in:
@@ -8,7 +8,7 @@ struct args_info {
|
||||
int argc;
|
||||
char **argv;
|
||||
int pos;
|
||||
int opts_done : 1; /**< Did we see a -- separator */
|
||||
unsigned int opts_done : 1; /**< Did we see a -- separator */
|
||||
};
|
||||
#define ARGS_INFO_INIT { argc, argv, 0, 0 }
|
||||
#define ARGS_CURRENT(args) args->argv[args->pos]
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
int force : 1;
|
||||
int progress : 1;
|
||||
int perf : 1;
|
||||
unsigned int force : 1;
|
||||
unsigned int progress : 1;
|
||||
unsigned int perf : 1;
|
||||
} checkout_options;
|
||||
|
||||
static void print_usage(void)
|
||||
|
||||
@@ -30,7 +30,7 @@ struct merge_options {
|
||||
git_annotated_commit **annotated;
|
||||
size_t annotated_count;
|
||||
|
||||
int no_commit : 1;
|
||||
unsigned int no_commit : 1;
|
||||
};
|
||||
|
||||
static void print_usage(void)
|
||||
|
||||
Reference in New Issue
Block a user