[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 12ad79c: Add a note about a questionable use of b
From: |
John Wiegley |
Subject: |
[Emacs-diffs] emacs-25 12ad79c: Add a note about a questionable use of bool in xdisp.c |
Date: |
Mon, 23 Nov 2015 14:43:01 +0000 |
branch: emacs-25
commit 12ad79c23e26e02007776105f99b03b0169c2a62
Author: John Wiegley <address@hidden>
Commit: John Wiegley <address@hidden>
Add a note about a questionable use of bool in xdisp.c
---
src/xdisp.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/xdisp.c b/src/xdisp.c
index 85d356e..50c5518 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -10733,6 +10733,9 @@ display_echo_area (struct window *w)
reset the echo_area_buffer in question to nil at the end because
with_echo_area_buffer will sets it to an empty buffer. */
bool i = display_last_displayed_message_p;
+ /* According to the C99, C11 and C++11 standards, the integral value
+ of a "bool" is always 0 or 1, so this array access is safe here,
+ if oddly typed. */
no_message_p = NILP (echo_area_buffer[i]);
window_height_changed_p
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 12ad79c: Add a note about a questionable use of bool in xdisp.c,
John Wiegley <=