changeset 55530:ada02c2b390c

(mutually_exclusive_p): In 'case wordbeg', compare op2 against proper opcode.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 11 May 2004 09:47:25 +0000
parents 455a962a0dba
children e862a78a46da
files src/regex.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Tue May 11 09:41:20 2004 +0000
+++ b/src/regex.c	Tue May 11 09:47:25 2004 +0000
@@ -4661,7 +4661,7 @@
     case wordbeg:
     case syntaxspec:
       return ((re_opcode_t) *p1 == notsyntaxspec
-	      && p1[1] == (op2 == wordend ? Sword : p2[1]));
+	      && p1[1] == (op2 == wordbeg ? Sword : p2[1]));
 
     case wordbound:
       return (((re_opcode_t) *p1 == notsyntaxspec