summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xdisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 5306533dd59..f81dfb6755a 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1347,8 +1347,8 @@ pos_visible_p (w, charpos, x, y, rtop, rbot, exact_mode_line_heights_p)
current_header_line_height = current_mode_line_height = -1;
- if (visible_p && w->hscroll > 0)
- *x -= w->hscroll;
+ if (visible_p && XFASTINT (w->hscroll) > 0)
+ *x -= XFASTINT (w->hscroll);
return visible_p;
}