* dispnew.c (scrolling_window): Return 1 if we scrolled,

to match comment at start of function.  This also removes a
GCC warning about overflow in a 32+64-bit port.
This commit is contained in:
Paul Eggert 2011-04-30 08:40:06 -07:00
parent 68652052aa
commit aec1708a55
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2011-04-30 Paul Eggert <eggert@cs.ucla.edu>
* dispnew.c (scrolling_window): Return 1 if we scrolled,
to match comment at start of function. This also removes a
GCC warning about overflow in a 32+64-bit port.
* lisp.h (EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Simplify.
* dbusbind.c: Do not use XPNTR on a value that may be an integer.

View file

@ -4576,8 +4576,8 @@ scrolling_window (struct window *w, int header_line_p)
for (i = 0; i < row_entry_idx; ++i)
row_table[row_entry_pool[i].bucket] = NULL;
/* Value is > 0 to indicate that we scrolled the display. */
return nruns;
/* Value is 1 to indicate that we scrolled the display. */
return 0 < nruns;
}