From: Stefan Monnier Date: Fri, 26 Aug 2005 15:56:48 +0000 (+0000) Subject: (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM). X-Git-Tag: emacs-pretest-22.0.90~7421 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d182d87ccb4dc7b1ec4a4af15304eb15ce982cb5;p=emacs.git (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM). --- 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; }