mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
; * src/text-index.c (bytepos_forward_to_charpos): Fix an eassert.
This commit is contained in:
parent
c38027f0b8
commit
a3bfc238c0
1 changed files with 1 additions and 1 deletions
|
|
@ -456,7 +456,7 @@ static ptrdiff_t
|
|||
bytepos_forward_to_charpos (struct buffer *b, const struct text_pos from,
|
||||
ptrdiff_t to_charpos)
|
||||
{
|
||||
eassert (from.charpos < to_charpos);
|
||||
eassert (from.charpos <= to_charpos);
|
||||
ptrdiff_t bytepos = char_start_bytepos (b, from.bytepos);
|
||||
ptrdiff_t charpos = from.charpos;
|
||||
while (charpos < to_charpos)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue