Skip to content

Commit e4c3485

Browse files
newrengitster
authored andcommitted
update-ref: fix type of update_flags variable to match its usage
The ref_transaction_*() family of functions expect a flags parameter which is of type unsigned int. Make the update_flags variable, which is passed as that parameter, be of the same type. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1d4361b commit e4c3485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/update-ref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ static const char * const git_update_ref_usage[] = {
1414
};
1515

1616
static char line_termination = '\n';
17-
static int update_flags;
17+
static unsigned int update_flags;
1818
static unsigned create_reflog_flag;
1919
static const char *msg;
2020

0 commit comments

Comments
 (0)