]> git.eshelyaron.com Git - emacs.git/commitdiff
src/xdisp.c (pos_visible_p): Don't assign a boolean value to an int var.
authorEli Zaretskii <eliz@gnu.org>
Tue, 9 Sep 2014 18:23:26 +0000 (21:23 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 9 Sep 2014 18:23:26 +0000 (21:23 +0300)
src/xdisp.c

index 6991e44b931c4ad5e87e05d782d8aff9af9b584f..6b327c8429001576d229babd107c0f19a613500f 100644 (file)
@@ -1464,7 +1464,7 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y,
       if (top_y < window_top_y)
        visible_p = bottom_y > window_top_y;
       else if (top_y < it.last_visible_y)
-       visible_p = true;
+       visible_p = 1;
       if (bottom_y >= it.last_visible_y
          && it.bidi_p && it.bidi_it.scan_dir == -1
          && IT_CHARPOS (it) < charpos)