diff options
Diffstat (limited to 'src/undo.c')
| -rw-r--r-- | src/undo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/undo.c b/src/undo.c index 86c30c5d226..2f37bae8477 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -42,7 +42,7 @@ Lisp_Object pending_boundary; | |||
| 42 | because we don't need to record the contents.) */ | 42 | because we don't need to record the contents.) */ |
| 43 | 43 | ||
| 44 | record_insert (beg, length) | 44 | record_insert (beg, length) |
| 45 | Lisp_Object beg, length; | 45 | int beg, length; |
| 46 | { | 46 | { |
| 47 | Lisp_Object lbeg, lend; | 47 | Lisp_Object lbeg, lend; |
| 48 | 48 | ||
| @@ -69,15 +69,15 @@ record_insert (beg, length) | |||
| 69 | if (CONSP (elt) | 69 | if (CONSP (elt) |
| 70 | && INTEGERP (XCONS (elt)->car) | 70 | && INTEGERP (XCONS (elt)->car) |
| 71 | && INTEGERP (XCONS (elt)->cdr) | 71 | && INTEGERP (XCONS (elt)->cdr) |
| 72 | && XINT (XCONS (elt)->cdr) == XINT (beg)) | 72 | && XINT (XCONS (elt)->cdr) == beg) |
| 73 | { | 73 | { |
| 74 | XSETINT (XCONS (elt)->cdr, XINT (beg) + XINT (length)); | 74 | XSETINT (XCONS (elt)->cdr, beg + length); |
| 75 | return; | 75 | return; |
| 76 | } | 76 | } |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | lbeg = beg; | 79 | XSETFASTINT (lbeg, beg); |
| 80 | XSETINT (lend, XINT (beg) + XINT (length)); | 80 | XSETINT (lend, beg + length); |
| 81 | current_buffer->undo_list = Fcons (Fcons (lbeg, lend), | 81 | current_buffer->undo_list = Fcons (Fcons (lbeg, lend), |
| 82 | current_buffer->undo_list); | 82 | current_buffer->undo_list); |
| 83 | } | 83 | } |