changeset 9330:28fcacb58a38

(try_window_id): Don't use XFASTINT as an lvalue.
author Karl Heuer <kwzh@gnu.org>
date Tue, 04 Oct 1994 17:10:36 +0000
parents 4e1048594e7f
children bbf226780027
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Oct 04 17:09:34 1994 +0000
+++ b/src/xdisp.c	Tue Oct 04 17:10:36 1994 +0000
@@ -1590,7 +1590,8 @@
       if (i == xp.bufpos)
 	return -2;
 
-      XFASTINT (w->window_end_vpos) += scroll_amount;
+      XSETFASTINT (w->window_end_vpos,
+		   XFASTINT (w->window_end_vpos) + scroll_amount);
 
       /* Before doing any scrolling, verify that point will be on frame. */
       if (PT > ep.bufpos && !(PT <= xp.bufpos && xp.bufpos < height))
@@ -1796,7 +1797,8 @@
 	  val = *vmotion (Z - XFASTINT (w->window_end_pos),
 			  delta, width, hscroll, window);
 	  XSETFASTINT (w->window_end_pos, Z - val.bufpos);
-	  XFASTINT (w->window_end_vpos) += val.vpos;
+	  XSETFASTINT (w->window_end_vpos,
+		       XFASTINT (w->window_end_vpos) + val.vpos);
 	}
     }