mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-05 05:44:01 +00:00
submodule: cast enum to int for compare
This commit is contained in:
parent
3ca84ac0ed
commit
6065505667
@ -741,7 +741,7 @@ const char *git_submodule_update_to_str(git_submodule_update_t update)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < (int)ARRAY_SIZE(_sm_update_map); ++i)
|
for (i = 0; i < (int)ARRAY_SIZE(_sm_update_map); ++i)
|
||||||
if (_sm_update_map[i].map_value == update)
|
if (_sm_update_map[i].map_value == (int)update)
|
||||||
return _sm_update_map[i].str_match;
|
return _sm_update_map[i].str_match;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user