diff options
| author | Stefan Monnier | 2023-09-21 11:58:44 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-09-21 11:58:44 -0400 |
| commit | cc9bfcafb9cb9efa606d0ac5747a4600d5ccafcb (patch) | |
| tree | e2d6c97ccc38fb3c84b4e971f3bfe755dbd70879 /src | |
| parent | 424b35fa24f07f85c5287c682e140c1c8daa25d0 (diff) | |
| download | emacs-cc9bfcafb9cb9efa606d0ac5747a4600d5ccafcb.tar.gz emacs-cc9bfcafb9cb9efa606d0ac5747a4600d5ccafcb.zip | |
* src/regex-emacs.c (mutually_exclusive_aux) [ENABLE_CHECKING]: Fix if
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex-emacs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regex-emacs.c b/src/regex-emacs.c index 06befe1b189..cf7b704ee95 100644 --- a/src/regex-emacs.c +++ b/src/regex-emacs.c | |||
| @@ -3793,11 +3793,12 @@ mutually_exclusive_aux (struct re_pattern_buffer *bufp, re_char *p1, | |||
| 3793 | return true; /* Presumably already checked elsewhere. */ | 3793 | return true; /* Presumably already checked elsewhere. */ |
| 3794 | eassert (loop_entry && p2 >= loop_entry); | 3794 | eassert (loop_entry && p2 >= loop_entry); |
| 3795 | if (p2 < loop_entry || (loop_exit && p2 > loop_exit)) | 3795 | if (p2 < loop_entry || (loop_exit && p2 > loop_exit)) |
| 3796 | /* The assumptions about the shape of the code aren't true :-( */ | 3796 | { /* The assumptions about the shape of the code aren't true :-( */ |
| 3797 | #ifdef ENABLE_CHECKING | 3797 | #ifdef ENABLE_CHECKING |
| 3798 | error ("Broken assumption in regex.c:mutually_exclusive_aux"); | 3798 | error ("Broken assumption in regex.c:mutually_exclusive_aux"); |
| 3799 | #endif | 3799 | #endif |
| 3800 | return false; | 3800 | return false; |
| 3801 | } | ||
| 3801 | 3802 | ||
| 3802 | /* Skip over open/close-group commands. | 3803 | /* Skip over open/close-group commands. |
| 3803 | If what follows this loop is a ...+ construct, | 3804 | If what follows this loop is a ...+ construct, |