Unverified Commit 156e0899 by Edward Thomson Committed by GitHub

Merge pull request #6699 from libgit2/ethomson/bitfield

examples: use unsigned int for bitfields
parents 7ebd8a1d f004096f
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment