* dispnew.c (scrolling_window): Return 1 if we scrolled,
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Apr 2011 15:40:06 +0000 (08:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Apr 2011 15:40:06 +0000 (08:40 -0700)
to match comment at start of function.  This also removes a
GCC warning about overflow in a 32+64-bit port.

src/ChangeLog
src/dispnew.c

index d75ec22..0a9c3d8 100644 (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.
index 13e9201..0457d65 100644 (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;
 }