diff options
| author | Richard M. Stallman | 1994-12-04 21:06:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-12-04 21:06:42 +0000 |
| commit | 3fc86d4befc3c3c01f09940db8756cc0c9d581ce (patch) | |
| tree | 2f23d763cfbd8db08045212b0cdc84d99b1afb8f /src | |
| parent | df6530f8da94ae4f3a3fc0f96f6526a2237e900b (diff) | |
| download | emacs-3fc86d4befc3c3c01f09940db8756cc0c9d581ce.tar.gz emacs-3fc86d4befc3c3c01f09940db8756cc0c9d581ce.zip | |
(INTERVAL_LAST_POS): Don't subtract 1 here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/intervals.h | 4 |
1 files changed, 2 insertions, 2 deletions
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. */ | |||
| 80 | - TOTAL_LENGTH ((i)->right) \ | 80 | - TOTAL_LENGTH ((i)->right) \ |
| 81 | - TOTAL_LENGTH ((i)->left))) | 81 | - TOTAL_LENGTH ((i)->left))) |
| 82 | 82 | ||
| 83 | /* The absolute index of the last character belonging to I. Note that | 83 | /* The position of the character just past the end of I. Note that |
| 84 | the position cache i->position must be valid for this to work. */ | 84 | the position cache i->position must be valid for this to work. */ |
| 85 | #define INTERVAL_LAST_POS(i) ((i)->position + LENGTH ((i)) - 1) | 85 | #define INTERVAL_LAST_POS(i) ((i)->position + LENGTH ((i))) |
| 86 | 86 | ||
| 87 | /* The total size of the left subtree of this interval. */ | 87 | /* The total size of the left subtree of this interval. */ |
| 88 | #define LEFT_TOTAL_LENGTH(i) ((i)->left ? (i)->left->total_length : 0) | 88 | #define LEFT_TOTAL_LENGTH(i) ((i)->left ? (i)->left->total_length : 0) |