From: Richard M. Stallman Date: Sun, 4 Dec 1994 21:06:42 +0000 (+0000) Subject: (INTERVAL_LAST_POS): Don't subtract 1 here. X-Git-Tag: emacs-19.34~5743 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3fc86d4befc3c3c01f09940db8756cc0c9d581ce;p=emacs.git (INTERVAL_LAST_POS): Don't subtract 1 here. --- diff --git a/src/intervals.h b/src/intervals.h index 38671c128f0..8d10ffa8392 100644 --- a/src/intervals.h +++ b/src/intervals.h @@ -80,9 +80,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ - 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)