Cygwin: regex: NONCHAR: re-add cast to int

wint_t is unsigned int and the test checks for a negative value.  Thus,
it's optimized out by gcc.  Add the cast from commit 44caccfca2 to
avoid this.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2023-03-16 13:47:07 +01:00
parent 0bdc764b42
commit 2285cf0d1c
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ static states step(struct re_guts *g, sopno start, sopno stop, states bef, wint_
#define EOW (BOL-5)
#define BADCHAR (BOL-6)
#define NWBND (BOL-7)
#define NONCHAR(c) ((c) <= OUT)
#define NONCHAR(c) ((int)(c) <= OUT)
/* sflags */
#define SBOS 0x0001
#define SEOS 0x0002