aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-30 08:40:06 -0700
committerPaul Eggert2011-04-30 08:40:06 -0700
commitaec1708a5548072ba337a345fb72a184840eb0cb (patch)
tree30695b28c2912b33c6d55d7f084e540f223715f5 /src
parent68652052aa84634e84652f46e9a795081cd40906 (diff)
downloademacs-aec1708a5548072ba337a345fb72a184840eb0cb.tar.gz
emacs-aec1708a5548072ba337a345fb72a184840eb0cb.zip
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/dispnew.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d75ec22b9f9..0a9c3d88ca5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12011-04-30 Paul Eggert <eggert@cs.ucla.edu> 12011-04-30 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * dispnew.c (scrolling_window): Return 1 if we scrolled,
4 to match comment at start of function. This also removes a
5 GCC warning about overflow in a 32+64-bit port.
6
3 * lisp.h (EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Simplify. 7 * lisp.h (EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Simplify.
4 8
5 * dbusbind.c: Do not use XPNTR on a value that may be an integer. 9 * dbusbind.c: Do not use XPNTR on a value that may be an integer.
diff --git a/src/dispnew.c b/src/dispnew.c
index 13e920166c5..0457d650b3a 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -4576,8 +4576,8 @@ scrolling_window (struct window *w, int header_line_p)
4576 for (i = 0; i < row_entry_idx; ++i) 4576 for (i = 0; i < row_entry_idx; ++i)
4577 row_table[row_entry_pool[i].bucket] = NULL; 4577 row_table[row_entry_pool[i].bucket] = NULL;
4578 4578
4579 /* Value is > 0 to indicate that we scrolled the display. */ 4579 /* Value is 1 to indicate that we scrolled the display. */
4580 return nruns; 4580 return 0 < nruns;
4581} 4581}
4582 4582
4583 4583