Module Name:    src
Committed By:   bouyer
Date:           Sun Nov  1 16:10:12 UTC 2009

Modified Files:
        src/dist/nvi/regex [netbsd-5]: regexec.c

Log Message:
Pull up following revision(s) (requested by dsl in ticket #1121):
        dist/nvi/regex/regexec.c: revision 1.4
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.1.1.2.6.1 -r1.1.1.2.6.2 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.1.1.2.6.1 src/dist/nvi/regex/regexec.c:1.1.1.2.6.2
--- src/dist/nvi/regex/regexec.c:1.1.1.2.6.1	Tue Jan 20 02:41:13 2009
+++ src/dist/nvi/regex/regexec.c	Sun Nov  1 16:10:12 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: regexec.c,v 1.1.1.2.6.1 2009/01/20 02:41:13 snj Exp $ */
+/*	$NetBSD: regexec.c,v 1.1.1.2.6.2 2009/11/01 16:10:12 bouyer 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))

Reply via email to