diff options
| author | Karl Heuer | 1995-06-06 01:40:34 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-06-06 01:40:34 +0000 |
| commit | 53480e99d358bb1167a38cd13167ea55122cd754 (patch) | |
| tree | 4e3b992834fc4604d788f4609a4a0917caa47a65 /src | |
| parent | 6de34814d61fea789ea3f27f0314e7e4d74adf23 (diff) | |
| download | emacs-53480e99d358bb1167a38cd13167ea55122cd754.tar.gz emacs-53480e99d358bb1167a38cd13167ea55122cd754.zip | |
(record_insert): Change args to be ints, not Lisp_Objects.
Diffstat (limited to 'src')
| -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 | } |