changeset 6342:c9e33093c488

(redisplay_window): Avoid dividing negative numbers, since the rounding effect is implementation-defined.
author Karl Heuer <kwzh@gnu.org>
date Mon, 14 Mar 1994 21:36:58 +0000
parents dfc758dd2b08
children 372613d5970b
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Mon Mar 14 21:36:17 1994 +0000
+++ b/src/xdisp.c	Mon Mar 14 21:36:58 1994 +0000
@@ -1297,7 +1297,7 @@
   /* Forget any previously recorded base line for line number display.  */
   w->base_line_number = Qnil;
 
-  pos = *vmotion (point, - height / 2, width, hscroll, window);
+  pos = *vmotion (point, - (height / 2), width, hscroll, window);
   try_window (window, pos.bufpos);
 
   startp = marker_position (w->start);