Module Name: src
Committed By: dsl
Date: Sat Oct 31 20:11:53 UTC 2009
Modified Files:
src/dist/nvi/regex: regexec.c
Log Message:
Fix regexp on LP64 systems.
By the time 'states1' was expanded, it became 'char *' so the code tried
to put 64 bits into an int!
Fixed PR/41924
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/dist/nvi/regex/regexec.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/nvi/regex/regexec.c
diff -u src/dist/nvi/regex/regexec.c:1.3 src/dist/nvi/regex/regexec.c:1.4
--- src/dist/nvi/regex/regexec.c:1.3 Sun Jan 18 03:45:50 2009
+++ src/dist/nvi/regex/regexec.c Sat Oct 31 20:11:53 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: regexec.c,v 1.3 2009/01/18 03:45:50 lukem Exp $ */
+/* $NetBSD: regexec.c,v 1.4 2009/10/31 20:11:53 dsl Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
@@ -67,7 +67,7 @@
/* macros for manipulating states, small version */
#define states int
-#define states1 states /* for later use in regexec() decision */
+#define states1 int /* for later use in regexec() decision */
#define CLEAR(v) ((v) = 0)
#define SET0(v, n) ((v) &= ~(1 << (n)))
#define SET1(v, n) ((v) |= 1 << (n))