changeset 6341:dfc758dd2b08

(window_scroll, Fmove_to_window_line): Avoid dividing negative numbers, since the rounding effect is implementation-defined.
author Karl Heuer <kwzh@gnu.org>
date Mon, 14 Mar 1994 21:36:17 +0000
parents e9c46ef0a877
children c9e33093c488
files src/window.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Mon Mar 14 21:27:41 1994 +0000
+++ b/src/window.c	Mon Mar 14 21:36:17 1994 +0000
@@ -2178,7 +2178,7 @@
 
   if (NILP (tem))
     {
-      Fvertical_motion (make_number (- ht / 2), window);
+      Fvertical_motion (make_number (- (ht / 2)), window);
       XFASTINT (tem) = point;
       Fset_marker (w->start, tem, w->buffer);
       w->force_start = Qt;
@@ -2467,7 +2467,7 @@
   XSET (window, Lisp_Window, w);
   if (start < BEGV || start > ZV)
     {
-      Fvertical_motion (make_number (- height / 2), window);
+      Fvertical_motion (make_number (- (height / 2)), window);
       Fset_marker (w->start, make_number (point), w->buffer);
       w->start_at_line_beg = Fbolp ();
       w->force_start = Qt;