The latter causes crashes, since LENGTH macro in intervals.h:114 has to be
able to return a negative number.
(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)
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;