Commit 1ab964d7 authored by Ken Raeburn's avatar Ken Raeburn

* window.c (enlarge_window): In new preserve_before code, convert CURBEG from

lisp object to integer before doing arithmetic.
parent 5274126b
2001-12-27 Ken Raeburn <raeburn@gnu.org>
* window.c (enlarge_window): In new preserve_before code, convert
CURBEG from lisp object to integer before doing arithmetic.
2001-12-27 Richard M. Stallman <rms@gnu.org> 2001-12-27 Richard M. Stallman <rms@gnu.org>
* bytecode.c (Fbyte_code): Undo previous change. * bytecode.c (Fbyte_code): Undo previous change.
......
...@@ -3394,7 +3394,7 @@ enlarge_window (window, delta, widthflag, preserve_before) ...@@ -3394,7 +3394,7 @@ enlarge_window (window, delta, widthflag, preserve_before)
{ {
maxdelta = (*sizefun) (parent) - XINT (*sizep); maxdelta = (*sizefun) (parent) - XINT (*sizep);
/* Subtract size of siblings before, since we can't take that. */ /* Subtract size of siblings before, since we can't take that. */
maxdelta -= CURBEG (window) - CURBEG (parent); maxdelta -= XINT (CURBEG (window)) - XINT (CURBEG (parent));
} }
else else
maxdelta = (!NILP (p->next) ? ((*sizefun) (p->next) maxdelta = (!NILP (p->next) ? ((*sizefun) (p->next)
......
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