because we don't need to record the contents.) */
record_insert (beg, length)
- Lisp_Object beg, length;
+ int beg, length;
{
Lisp_Object lbeg, lend;
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);
}