diff options
| author | John Wiegley | 2015-11-23 06:42:22 -0800 |
|---|---|---|
| committer | John Wiegley | 2015-11-23 06:42:56 -0800 |
| commit | 12ad79c23e26e02007776105f99b03b0169c2a62 (patch) | |
| tree | 48536ba9af3f1da937fd85115364e3a30ffd90d4 /src | |
| parent | c89b5a0f8a3905c023eb196e453383c95a4f6a89 (diff) | |
| download | emacs-12ad79c23e26e02007776105f99b03b0169c2a62.tar.gz emacs-12ad79c23e26e02007776105f99b03b0169c2a62.zip | |
Add a note about a questionable use of bool in xdisp.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 85d356e9ba5..50c5518114e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10733,6 +10733,9 @@ display_echo_area (struct window *w) | |||
| 10733 | reset the echo_area_buffer in question to nil at the end because | 10733 | reset the echo_area_buffer in question to nil at the end because |
| 10734 | with_echo_area_buffer will sets it to an empty buffer. */ | 10734 | with_echo_area_buffer will sets it to an empty buffer. */ |
| 10735 | bool i = display_last_displayed_message_p; | 10735 | bool i = display_last_displayed_message_p; |
| 10736 | /* According to the C99, C11 and C++11 standards, the integral value | ||
| 10737 | of a "bool" is always 0 or 1, so this array access is safe here, | ||
| 10738 | if oddly typed. */ | ||
| 10736 | no_message_p = NILP (echo_area_buffer[i]); | 10739 | no_message_p = NILP (echo_area_buffer[i]); |
| 10737 | 10740 | ||
| 10738 | window_height_changed_p | 10741 | window_height_changed_p |