8000 Merge pull request #6699 from libgit2/ethomson/bitfield · libgit2/libgit2@156e089 · GitHub
[go: up one dir, main page]

Skip to content

Commit 156e089

Browse files
authored
Merge pull request #6699 from libgit2/ethomson/bitfield
examples: use unsigned int for bitfields
2 parents 7ebd8a1 + f004096 commit 156e089

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/args.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct args_info {
88
int argc;
99
char **argv;
1010
int pos;
11-
int opts_done : 1; /**< Did we see a -- separator */
11+
unsigned int opts_done : 1; /**< Did we see a -- separator */
1212
};
1313
#define ARGS_INFO_INIT { argc, argv, 0, 0 }
1414
#define ARGS_CURRENT(args) args->argv[args->pos]

examples/checkout.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
*/
3636

3737
typedef struct {
38-
int force : 1;
39-
int progress : 1;
40-
int perf : 1;
38+
unsigned int force : 1;
39+
unsigned int progress : 1;
40+
unsigned int perf : 1;
4141
} checkout_options;
4242

4343
static void print_usage(void)

examples/merge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct merge_options {
3030
git_annotated_commit **annotated;
3131
size_t annotated_count;
3232

33-
int no_commit : 1;
33+
unsigned int no_commit : 1;
3434
};
3535

3636
static void print_usage(void)

0 commit comments

Comments
 (0)
0