diff options
| author | Gerd Möllmann | 2025-05-04 17:03:55 +0200 |
|---|---|---|
| committer | Gerd Möllmann | 2025-05-04 17:05:25 +0200 |
| commit | a3bfc238c0099262563c36be0b6be6672af55e9c (patch) | |
| tree | 7fd9932d90a495c91e3486efc40243a041722e52 | |
| parent | c38027f0b8568cbf5d2f60ef56c5c5e076ebb0bc (diff) | |
| download | emacs-a3bfc238c0099262563c36be0b6be6672af55e9c.tar.gz emacs-a3bfc238c0099262563c36be0b6be6672af55e9c.zip | |
; * src/text-index.c (bytepos_forward_to_charpos): Fix an eassert.
| -rw-r--r-- | src/text-index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text-index.c b/src/text-index.c index a04d7e39419..1d002b5b8f4 100644 --- a/src/text-index.c +++ b/src/text-index.c | |||
| @@ -456,7 +456,7 @@ static ptrdiff_t | |||
| 456 | bytepos_forward_to_charpos (struct buffer *b, const struct text_pos from, | 456 | bytepos_forward_to_charpos (struct buffer *b, const struct text_pos from, |
| 457 | ptrdiff_t to_charpos) | 457 | ptrdiff_t to_charpos) |
| 458 | { | 458 | { |
| 459 | eassert (from.charpos < to_charpos); | 459 | eassert (from.charpos <= to_charpos); |
| 460 | ptrdiff_t bytepos = char_start_bytepos (b, from.bytepos); | 460 | ptrdiff_t bytepos = char_start_bytepos (b, from.bytepos); |
| 461 | ptrdiff_t charpos = from.charpos; | 461 | ptrdiff_t charpos = from.charpos; |
| 462 | while (charpos < to_charpos) | 462 | while (charpos < to_charpos) |