diff options
| author | Stefan Monnier | 2024-07-07 13:57:55 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2024-07-07 13:57:55 -0400 |
| commit | 62f000905516e271bc35e4ecd2773eda8c1991ab (patch) | |
| tree | a3156a3e7b6df1a7b9bf6cb2b9f8e22e29d3e290 | |
| parent | 339a3522a61c8b92afe434f2b773d4fbfb83b5f1 (diff) | |
| download | emacs-scratch/gl-state-bytepos.tar.gz emacs-scratch/gl-state-bytepos.zip | |
| -rw-r--r-- | src/regex-emacs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regex-emacs.c b/src/regex-emacs.c index 23280ad3f4a..4a928861549 100644 --- a/src/regex-emacs.c +++ b/src/regex-emacs.c | |||
| @@ -1579,6 +1579,7 @@ RE_UPDATE_SYNTAX_TABLE_FORWARD (ptrdiff_t byteoffset) | |||
| 1579 | = old_e == gl_state.b_property ? old_e_byte | 1579 | = old_e == gl_state.b_property ? old_e_byte |
| 1580 | : CHARPOS_TO_BYTEOFFSET (gl_state.b_property); | 1580 | : CHARPOS_TO_BYTEOFFSET (gl_state.b_property); |
| 1581 | gl_state.e_byte_property = CHARPOS_TO_BYTEOFFSET (gl_state.e_property); | 1581 | gl_state.e_byte_property = CHARPOS_TO_BYTEOFFSET (gl_state.e_property); |
| 1582 | eassert (byteoffset >= gl_state.b_byte_property); | ||
| 1582 | } | 1583 | } |
| 1583 | } | 1584 | } |
| 1584 | 1585 | ||
| @@ -1598,6 +1599,7 @@ RE_UPDATE_SYNTAX_TABLE_BACKWARD (ptrdiff_t byteoffset) | |||
| 1598 | = old_b == gl_state.e_property ? old_b_byte | 1599 | = old_b == gl_state.e_property ? old_b_byte |
| 1599 | : CHARPOS_TO_BYTEOFFSET (gl_state.e_property); | 1600 | : CHARPOS_TO_BYTEOFFSET (gl_state.e_property); |
| 1600 | gl_state.b_byte_property = CHARPOS_TO_BYTEOFFSET (gl_state.b_property); | 1601 | gl_state.b_byte_property = CHARPOS_TO_BYTEOFFSET (gl_state.b_property); |
| 1602 | eassert (byteoffset < gl_state.e_byte_property); | ||
| 1601 | } | 1603 | } |
| 1602 | } | 1604 | } |
| 1603 | 1605 | ||