From 60655056672d28d88b246ecc97ba4b5a6e1dcdf4 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 29 Jun 2015 21:37:07 +0000 Subject: [PATCH] submodule: cast enum to int for compare --- src/submodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/submodule.c b/src/submodule.c index 796364bb8..2a12a97e8 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -741,7 +741,7 @@ const char *git_submodule_update_to_str(git_submodule_update_t update) { int 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 NULL; }