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

lisp object to integer before doing arithmetic.
This commit is contained in:
Ken Raeburn 2001-12-27 05:49:33 +00:00
parent 5274126bde
commit 1ab964d755
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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>
* bytecode.c (Fbyte_code): Undo previous change.

View file

@ -3394,7 +3394,7 @@ enlarge_window (window, delta, widthflag, preserve_before)
{
maxdelta = (*sizefun) (parent) - XINT (*sizep);
/* Subtract size of siblings before, since we can't take that. */
maxdelta -= CURBEG (window) - CURBEG (parent);
maxdelta -= XINT (CURBEG (window)) - XINT (CURBEG (parent));
}
else
maxdelta = (!NILP (p->next) ? ((*sizefun) (p->next)