diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 95690443f8e..3e2eb1664c8 100644 --- a/src/window.c +++ b/src/window.c @@ -7129,8 +7129,8 @@ If PIXELS-P is non-nil, the return value is VSCROLL. */) int old_dy = w->vscroll; w->vscroll = - (NILP (pixels_p) - ? FRAME_LINE_HEIGHT (f) * XFLOATINT (vscroll) - : XFLOATINT (vscroll)); + ? FRAME_LINE_HEIGHT (f) * extract_float (vscroll) + : extract_float (vscroll)); w->vscroll = min (w->vscroll, 0); if (w->vscroll != old_dy) |