From 48fa65020f4ce83e0aef986c5346f282b3ca76b7 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 28 Feb 2016 11:42:41 +0100 Subject: [PATCH] warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] --- src/flexdef.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/flexdef.h b/src/flexdef.h index 3448718..343e81d 100644 --- a/src/flexdef.h +++ b/src/flexdef.h @@ -1156,9 +1156,9 @@ bool regmatch_empty (regmatch_t * m); typedef unsigned int scanflags_t; extern scanflags_t* _sf_stk; extern size_t _sf_top_ix, _sf_max; /**< stack of scanner flags. */ -#define _SF_CASE_INS 0x0001 -#define _SF_DOT_ALL 0x0002 -#define _SF_SKIP_WS 0x0004 +#define _SF_CASE_INS ((scanflags_t) 0x0001) +#define _SF_DOT_ALL ((scanflags_t) 0x0002) +#define _SF_SKIP_WS ((scanflags_t) 0x0004) #define sf_top() (_sf_stk[_sf_top_ix]) #define sf_case_ins() (sf_top() & _SF_CASE_INS) #define sf_dot_all() (sf_top() & _SF_DOT_ALL) -- 2.40.0