From: rlar Date: Sun, 28 Feb 2016 10:42:41 +0000 (+0100) Subject: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] X-Git-Tag: v2.6.1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48fa65020f4ce83e0aef986c5346f282b3ca76b7;p=flex warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] --- 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)