diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-10-09 00:56:24 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-10-09 00:56:24 -0400 |
commit | 4f3f7aebc957732f4fbe5c799da5367f46607680 (patch) | |
tree | 34e0a0a63b6a6d18f8732a5644e94cfc41616057 /test/lisp/emacs-lisp/lisp-mnt-tests.el | |
parent | fe14454101cfd9951b76549773645b2ffeed66bd (diff) | |
download | emacs-4f3f7aebc957732f4fbe5c799da5367f46607680.tar.gz emacs-4f3f7aebc957732f4fbe5c799da5367f46607680.tar.bz2 emacs-4f3f7aebc957732f4fbe5c799da5367f46607680.zip |
itree.c: Use `interval_tree_inherit_offset`
The insertion code tried to manipulate the offset in its own way,
and apparently there was a bug in it. Replace that with a call to
`interval_tree_inherit_offset`, making the whole logic a bit simpler,
and fixing a bug along the way (not sure where the bug was, to be honest).
* src/itree.c (interval_tree_insert): Use `interval_tree_inherit_offset`.
Check the tree before insert_fix.
(recurse_check_tree): Don't check RB invariants.
(itree_limits_are_stable): Delete function (subsumed by `check_tree`).
Diffstat (limited to 'test/lisp/emacs-lisp/lisp-mnt-tests.el')
0 files changed, 0 insertions, 0 deletions