changeset 10112:3fc246695491

(INTERVAL_LAST_POS): Don't subtract 1 here.
author Richard M. Stallman <rms@gnu.org>
date Sun, 04 Dec 1994 21:06:42 +0000
parents add3c6d21876
children 9d72d79329c3
files src/intervals.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/intervals.h	Sun Dec 04 20:59:04 1994 +0000
+++ b/src/intervals.h	Sun Dec 04 21:06:42 1994 +0000
@@ -80,9 +80,9 @@
 					       - TOTAL_LENGTH ((i)->right) \
 					       - TOTAL_LENGTH ((i)->left)))
 
-/* The absolute index of the last character belonging to I.  Note that
+/* The position of the character just past the end of I.  Note that
    the position cache i->position must be valid for this to work. */
-#define INTERVAL_LAST_POS(i) ((i)->position + LENGTH ((i)) - 1)
+#define INTERVAL_LAST_POS(i) ((i)->position + LENGTH ((i)))
 
 /* The total size of the left subtree of this interval. */
 #define LEFT_TOTAL_LENGTH(i) ((i)->left ? (i)->left->total_length : 0)