diff options
| author | Karl Heuer | 1994-10-04 17:10:36 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 17:10:36 +0000 |
| commit | e8e536a9968182f5ee37eb4a5621ab7a520dc24e (patch) | |
| tree | 552e7d7acf748d79eadd56f1baa11d76e0e72623 /src | |
| parent | e33f733040db4034bf626614d598b75b49240d44 (diff) | |
| download | emacs-e8e536a9968182f5ee37eb4a5621ab7a520dc24e.tar.gz emacs-e8e536a9968182f5ee37eb4a5621ab7a520dc24e.zip | |
(try_window_id): Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 28a3b868da0..7f3d05deec4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1590,7 +1590,8 @@ try_window_id (window) | |||
| 1590 | if (i == xp.bufpos) | 1590 | if (i == xp.bufpos) |
| 1591 | return -2; | 1591 | return -2; |
| 1592 | 1592 | ||
| 1593 | XFASTINT (w->window_end_vpos) += scroll_amount; | 1593 | XSETFASTINT (w->window_end_vpos, |
| 1594 | XFASTINT (w->window_end_vpos) + scroll_amount); | ||
| 1594 | 1595 | ||
| 1595 | /* Before doing any scrolling, verify that point will be on frame. */ | 1596 | /* Before doing any scrolling, verify that point will be on frame. */ |
| 1596 | if (PT > ep.bufpos && !(PT <= xp.bufpos && xp.bufpos < height)) | 1597 | if (PT > ep.bufpos && !(PT <= xp.bufpos && xp.bufpos < height)) |
| @@ -1796,7 +1797,8 @@ try_window_id (window) | |||
| 1796 | val = *vmotion (Z - XFASTINT (w->window_end_pos), | 1797 | val = *vmotion (Z - XFASTINT (w->window_end_pos), |
| 1797 | delta, width, hscroll, window); | 1798 | delta, width, hscroll, window); |
| 1798 | XSETFASTINT (w->window_end_pos, Z - val.bufpos); | 1799 | XSETFASTINT (w->window_end_pos, Z - val.bufpos); |
| 1799 | XFASTINT (w->window_end_vpos) += val.vpos; | 1800 | XSETFASTINT (w->window_end_vpos, |
| 1801 | XFASTINT (w->window_end_vpos) + val.vpos); | ||
| 1800 | } | 1802 | } |
| 1801 | } | 1803 | } |
| 1802 | 1804 | ||