Commit 03192067 authored by Karl Heuer's avatar Karl Heuer
Browse files

(validate_region): Swap using temp Lisp_Object, not int.

parent 7c6f34f0
......@@ -1079,16 +1079,13 @@ so the buffer is truly empty after this.")
validate_region (b, e)
register Lisp_Object *b, *e;
{
register int i;
CHECK_NUMBER_COERCE_MARKER (*b, 0);
CHECK_NUMBER_COERCE_MARKER (*e, 1);
if (XINT (*b) > XINT (*e))
{
i = XFASTINT (*b); /* This is legit even if *b is < 0 */
*b = *e;
XSETFASTINT (*e, i); /* because this is all we do with i. */
Lisp_Object tem;
tem = *b; *b = *e; *e = tem;
}
if (!(BEGV <= XINT (*b) && XINT (*b) <= XINT (*e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment