Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/nvi/regex Fix regexp on LP64 systems.
details: https://anonhg.NetBSD.org/src/rev/ffb91d1efdce
branches: trunk
changeset: 748667:ffb91d1efdce
user: dsl <dsl%NetBSD.org@localhost>
date: Sat Oct 31 20:11:53 2009 +0000
description:
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
diffstat:
dist/nvi/regex/regexec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 86b9daea445e -r ffb91d1efdce dist/nvi/regex/regexec.c
--- a/dist/nvi/regex/regexec.c Sat Oct 31 15:15:42 2009 +0000
+++ b/dist/nvi/regex/regexec.c Sat Oct 31 20:11:53 2009 +0000
@@ -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))
Home |
Main Index |
Thread Index |
Old Index