Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6065505

Browse files
committed
submodule: cast enum to int for compare
1 parent 3ca84ac commit 6065505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/submodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ const char *git_submodule_update_to_str(git_submodule_update_t update)
741741
{
742742
int i;
743743
for (i = 0; i < (int)ARRAY_SIZE(_sm_update_map); ++i)
744-
if (_sm_update_map[i].map_value == update)
744+
if (_sm_update_map[i].map_value == (int)update)
745745
return _sm_update_map[i].str_match;
746746
return NULL;
747747
}

0 commit comments

Comments
 (0)