Mercurial > emacs
changeset 42351:29b74fa42a55
* window.c (enlarge_window): In new preserve_before code, convert CURBEG from
lisp object to integer before doing arithmetic.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Thu, 27 Dec 2001 05:49:33 +0000 |
parents | 791ec0f30e9e |
children | f4f9fbb022cc |
files | src/ChangeLog src/window.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Thu Dec 27 05:00:56 2001 +0000 +++ b/src/ChangeLog Thu Dec 27 05:49:33 2001 +0000 @@ -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.
--- a/src/window.c Thu Dec 27 05:00:56 2001 +0000 +++ b/src/window.c Thu Dec 27 05:49:33 2001 +0000 @@ -3394,7 +3394,7 @@ { 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)