From 2a0c736bebd702b8aefc2282898d1a3378f46d3a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 11 May 2004 09:47:25 +0000 Subject: [PATCH] (mutually_exclusive_p): In 'case wordbeg', compare op2 against proper opcode. --- src/regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regex.c b/src/regex.c index a145183510d..a518ef81a0c 100644 --- a/src/regex.c +++ b/src/regex.c @@ -4661,7 +4661,7 @@ mutually_exclusive_p (bufp, p1, p2) 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 -- 2.39.2