Commit 60655056 by Edward Thomson

submodule: cast enum to int for compare

parent 3ca84ac0
...@@ -741,7 +741,7 @@ const char *git_submodule_update_to_str(git_submodule_update_t update) ...@@ -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;
} }
......
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