diff options
| author | Paul Eggert | 2011-04-20 01:04:17 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-20 01:04:17 -0700 |
| commit | c20db43fef1bceb545b05bec2dbf18b1fbb2b533 (patch) | |
| tree | 7d2186191340a2d33fdf47b68c626e51f9608d39 /src/intervals.h | |
| parent | 2538aa2f5f92dd8878652d299e7d6ebabc352075 (diff) | |
| download | emacs-c20db43fef1bceb545b05bec2dbf18b1fbb2b533.tar.gz emacs-c20db43fef1bceb545b05bec2dbf18b1fbb2b533.zip | |
* intervals.h (struct interval): Use EMACS_INT for members
where EMACS_UINT might cause problems. See
<http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00514.html>.
(CHECK_TOTAL_LENGTH): Remove cast to EMACS_INT; no longer needed.
* intervals.c (interval_deletion_adjustment): Now returns EMACS_INT.
All uses changed.
Diffstat (limited to 'src/intervals.h')
| -rw-r--r-- | src/intervals.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intervals.h b/src/intervals.h index 6cf5c89374b..720598fe7a6 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -27,8 +27,8 @@ struct interval | |||
| 27 | { | 27 | { |
| 28 | /* The first group of entries deal with the tree structure. */ | 28 | /* The first group of entries deal with the tree structure. */ |
| 29 | 29 | ||
| 30 | EMACS_UINT total_length; /* Length of myself and both children. */ | 30 | EMACS_INT total_length; /* Length of myself and both children. */ |
| 31 | EMACS_UINT position; /* Cache of interval's character position. */ | 31 | EMACS_INT position; /* Cache of interval's character position. */ |
| 32 | /* This field is usually updated | 32 | /* This field is usually updated |
| 33 | simultaneously with an interval | 33 | simultaneously with an interval |
| 34 | traversal, there is no guarantee | 34 | traversal, there is no guarantee |
| @@ -164,7 +164,7 @@ struct interval | |||
| 164 | #define CHECK_TOTAL_LENGTH(i) \ | 164 | #define CHECK_TOTAL_LENGTH(i) \ |
| 165 | do \ | 165 | do \ |
| 166 | { \ | 166 | { \ |
| 167 | if ((EMACS_INT) (i)->total_length < 0) \ | 167 | if ((i)->total_length < 0) \ |
| 168 | abort (); \ | 168 | abort (); \ |
| 169 | } \ | 169 | } \ |
| 170 | while (0) | 170 | while (0) |