From 8c21e63dbcca4167942a99b76a89f0bbb376e1f6 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Fri, 20 Nov 2015 20:54:52 +0000
Subject: [PATCH] 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>
---
lib/search.h | 1 +
lib/search/search.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/search.h b/lib/search.h
index d8d9003..c0d56d0 100644
a
|
b
|
typedef enum |
41 | 41 | |
42 | 42 | typedef enum |
43 | 43 | { |
| 44 | MC_SEARCH_T_INVALID = -1, |
44 | 45 | MC_SEARCH_T_NORMAL, |
45 | 46 | MC_SEARCH_T_REGEX, |
46 | 47 | MC_SEARCH_T_HEX, |
diff --git a/lib/search/search.c b/lib/search/search.c
index e891832..af3bbe8 100644
a
|
b
|
static const mc_search_type_str_t mc_search__list_types[] = { |
53 | 53 | {N_("Re&gular expression"), MC_SEARCH_T_REGEX}, |
54 | 54 | {N_("He&xadecimal"), MC_SEARCH_T_HEX}, |
55 | 55 | {N_("Wil&dcard search"), MC_SEARCH_T_GLOB}, |
56 | | {NULL, -1} |
| 56 | {NULL, MC_SEARCH_T_INVALID} |
57 | 57 | }; |
58 | 58 | |
59 | 59 | /*** file scope functions ************************************************************************/ |