Mercurial > hg > xemacs-beta
comparison src/extents.c @ 5053:0e803dc6f096
fix to assert in extents.c, so `make check' works
-------------------- ChangeLog entries follow: --------------------
src/ChangeLog addition:
2010-02-21 Ben Wing <ben@xemacs.org>
* extents.c (process_extents_for_insertion_mapper):
Assertion wasn't quite set up correctly in previous patch.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Sun, 21 Feb 2010 03:06:43 -0600 |
parents | 6f2158fa75ed |
children | 2a462149bd6a |
comparison
equal
deleted
inserted
replaced
5052:92dc90c0bb40 | 5053:0e803dc6f096 |
---|---|
4942 /* When this function is called, one end of the newly-inserted text should | 4942 /* When this function is called, one end of the newly-inserted text should |
4943 be adjacent to some endpoint of the extent, or disjoint from it. If | 4943 be adjacent to some endpoint of the extent, or disjoint from it. If |
4944 the insertion overlaps any existing extent, something is wrong. | 4944 the insertion overlaps any existing extent, something is wrong. |
4945 */ | 4945 */ |
4946 #ifdef ERROR_CHECK_EXTENTS | 4946 #ifdef ERROR_CHECK_EXTENTS |
4947 assert (extent_start (extent) <= indice || extent_start (extent) > indice + closure->length); | 4947 assert (extent_start (extent) <= indice || extent_start (extent) >= indice + closure->length); |
4948 assert (extent_end (extent) <= indice || extent_end (extent) > indice + closure->length); | 4948 assert (extent_end (extent) <= indice || extent_end (extent) >= indice + closure->length); |
4949 #endif | 4949 #endif |
4950 | 4950 |
4951 /* The extent-adjustment code adjusted the extent's endpoints as if | 4951 /* The extent-adjustment code adjusted the extent's endpoints as if |
4952 all extents were closed-open -- endpoints at the insertion point | 4952 all extents were closed-open -- endpoints at the insertion point |
4953 remain unchanged. We need to fix the other kinds of extents: | 4953 remain unchanged. We need to fix the other kinds of extents: |