Fix compiler warning at search.c

search.c:56:12: warning: implicit conversion changes signedness: 'int' to 'mc_search_type_t' [-Wsign-conversion]
    {NULL, -1}
    ~      ^~
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2015-11-20 20:54:52 +00:00 committed by Andrew Borodin
parent 106f80310d
commit a3a78d9daf
2 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ typedef enum
typedef enum
{
MC_SEARCH_T_INVALID = -1,
MC_SEARCH_T_NORMAL,
MC_SEARCH_T_REGEX,
MC_SEARCH_T_HEX,

View File

@ -53,7 +53,7 @@ static const mc_search_type_str_t mc_search__list_types[] = {
{N_("Re&gular expression"), MC_SEARCH_T_REGEX},
{N_("He&xadecimal"), MC_SEARCH_T_HEX},
{N_("Wil&dcard search"), MC_SEARCH_T_GLOB},
{NULL, -1}
{NULL, MC_SEARCH_T_INVALID}
};
/*** file scope functions ************************************************************************/