Mercurial > emacs
changeset 110510:fa060a284a1b
Use EMACS_INT instead of EMACS_UINT in intervals.c.
The latter causes crashes, since LENGTH macro in intervals.h:114 has to be
able to return a negative number.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Thu, 23 Sep 2010 14:54:49 -0400 |
parents | db816f28c44b |
children | 5746a646bb03 |
files | src/ChangeLog src/intervals.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Thu Sep 23 14:50:57 2010 -0400 +++ b/src/ChangeLog Thu Sep 23 14:54:49 2010 -0400 @@ -57,7 +57,7 @@ (move_if_not_intangible, get_local_map, copy_intervals) (copy_intervals_to_string, compare_string_intervals) (set_intervals_multibyte_1): Use EMACS_INT for buffer positions - and EMACS_UINT for interval tree size. + and for interval tree size. * intervals.h (traverse_intervals, split_interval_right) (split_interval_left, find_interval, offset_intervals)
--- a/src/intervals.c Thu Sep 23 14:50:57 2010 -0400 +++ b/src/intervals.c Thu Sep 23 14:54:49 2010 -0400 @@ -1326,8 +1326,8 @@ if (relative_position < LEFT_TOTAL_LENGTH (tree)) { EMACS_INT subtract = interval_deletion_adjustment (tree->left, - relative_position, - amount); + relative_position, + amount); tree->total_length -= subtract; CHECK_TOTAL_LENGTH (tree); return subtract;