diff options
| -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 | ||