changeset 12088:f0c9d02fb6e4

(record_insert): Change args to be ints, not Lisp_Objects.
author Karl Heuer <kwzh@gnu.org>
date Tue, 06 Jun 1995 01:40:34 +0000
parents 3bbf71f1cf30
children f7cb17ca1815
files src/undo.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/undo.c	Tue Jun 06 01:39:40 1995 +0000
+++ b/src/undo.c	Tue Jun 06 01:40:34 1995 +0000
@@ -42,7 +42,7 @@
    because we don't need to record the contents.)  */
 
 record_insert (beg, length)
-     Lisp_Object beg, length;
+     int beg, length;
 {
   Lisp_Object lbeg, lend;
 
@@ -69,15 +69,15 @@
       if (CONSP (elt)
 	  && INTEGERP (XCONS (elt)->car)
 	  && INTEGERP (XCONS (elt)->cdr)
-	  && XINT (XCONS (elt)->cdr) == XINT (beg))
+	  && XINT (XCONS (elt)->cdr) == beg)
 	{
-	  XSETINT (XCONS (elt)->cdr, XINT (beg) + XINT (length));
+	  XSETINT (XCONS (elt)->cdr, beg + length);
 	  return;
 	}
     }
 
-  lbeg = beg;
-  XSETINT (lend, XINT (beg) + XINT (length));
+  XSETFASTINT (lbeg, beg);
+  XSETINT (lend, beg + length);
   current_buffer->undo_list = Fcons (Fcons (lbeg, lend),
                                      current_buffer->undo_list);
 }