summaryrefslogtreecommitdiff
path: root/regex
diff options
context:
space:
mode:
authorunknown <iggy@mysql.com>2006-06-19 22:19:05 -0400
committerunknown <iggy@mysql.com>2006-06-19 22:19:05 -0400
commitc21f2373b0f2f92512f3d59ec4618a6790760e6b (patch)
treebd2064ecc400ae3a906e2302b27ad0be54559ab9 /regex
parent3435f614c2951714c3c93ff7fcdc6325f7ad2e05 (diff)
downloadmariadb-git-c21f2373b0f2f92512f3d59ec4618a6790760e6b.tar.gz
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 *.
Diffstat (limited to 'regex')
-rw-r--r--regex/regexec.c2
1 files changed, 1 insertions, 1 deletions
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))