From c21f2373b0f2f92512f3d59ec4618a6790760e6b Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 19 Jun 2006 22:19:05 -0400 Subject: Bug#19407 Test 'func_regexp' fails on Windows x64 regex/regexec.c: The Win64 pre-processor evaluates state1 at the end of the chain at replace-time not at definition-time. This causes states1 to be defined as char *. --- regex/regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regex') diff --git a/regex/regexec.c b/regex/regexec.c index b7ad83ba883..88bcc02323d 100644 --- a/regex/regexec.c +++ b/regex/regexec.c @@ -19,7 +19,7 @@ static int nope = 0; /* for use in asserts; shuts lint up */ /* macros for manipulating states, small version */ #define states long -#define states1 states /* for later use in regexec() decision */ +#define states1 long /* for later use in regexec() decision. Ensure Win64 definition is correct.*/ #define CLEAR(v) ((v) = 0) #define SET0(v, n) ((v) &= ~((states) 1 << (n))) #define SET1(v, n) ((v) |= (states) 1 << (n)) -- cgit v1.2.1