diff options
Diffstat (limited to 'src/intervals.c')
| -rw-r--r-- | src/intervals.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intervals.c b/src/intervals.c index 8f3840976d0..e72bc146d16 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -39,6 +39,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 39 | 39 | ||
| 40 | #include <config.h> | 40 | #include <config.h> |
| 41 | #include <setjmp.h> | 41 | #include <setjmp.h> |
| 42 | #include <intprops.h> | ||
| 42 | #include "lisp.h" | 43 | #include "lisp.h" |
| 43 | #include "intervals.h" | 44 | #include "intervals.h" |
| 44 | #include "buffer.h" | 45 | #include "buffer.h" |
| @@ -1435,7 +1436,10 @@ offset_intervals (struct buffer *buffer, EMACS_INT start, EMACS_INT length) | |||
| 1435 | if (length > 0) | 1436 | if (length > 0) |
| 1436 | adjust_intervals_for_insertion (BUF_INTERVALS (buffer), start, length); | 1437 | adjust_intervals_for_insertion (BUF_INTERVALS (buffer), start, length); |
| 1437 | else | 1438 | else |
| 1438 | adjust_intervals_for_deletion (buffer, start, -length); | 1439 | { |
| 1440 | IF_LINT (if (length < - TYPE_MAXIMUM (EMACS_INT)) abort ();) | ||
| 1441 | adjust_intervals_for_deletion (buffer, start, -length); | ||
| 1442 | } | ||
| 1439 | } | 1443 | } |
| 1440 | 1444 | ||
| 1441 | /* Merge interval I with its lexicographic successor. The resulting | 1445 | /* Merge interval I with its lexicographic successor. The resulting |