aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-06-12 18:07:35 -0700
committerPaul Eggert2011-06-12 18:07:35 -0700
commit34206dd201b905b8f9eec84b4e90ba591b06a79a (patch)
tree3a08862ed4619be5f2675986ec463d3432267cee /src/ChangeLog
parentc5958d4cf336fdbc30364e7d701d6565acaf4002 (diff)
downloademacs-34206dd201b905b8f9eec84b4e90ba591b06a79a.tar.gz
emacs-34206dd201b905b8f9eec84b4e90ba591b06a79a.zip
Make sure a 64-bit char is never passed to ENCODE_CHAR.
This is for reasons similar to the recent CHAR_STRING fix. * charset.c (Fencode_char): Check that character arg is actually a character. Pass an int to ENCODE_CHAR. * charset.h (ENCODE_CHAR): Verify that the character argument is no wider than 'int', as a compile-time check to prevent future regressions in this area.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 01068fea0be..6a6ae7d53cf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,13 @@
12011-06-13 Paul Eggert <eggert@cs.ucla.edu> 12011-06-13 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Make sure a 64-bit char is never passed to ENCODE_CHAR.
4 This is for reasons similar to the recent CHAR_STRING fix.
5 * charset.c (Fencode_char): Check that character arg is actually
6 a character. Pass an int to ENCODE_CHAR.
7 * charset.h (ENCODE_CHAR): Verify that the character argument is no
8 wider than 'int', as a compile-time check to prevent future regressions
9 in this area.
10
3 * character.c (char_string): Remove unnecessary casts. 11 * character.c (char_string): Remove unnecessary casts.
4 12
5 Make sure a 64-bit char is never passed to CHAR_STRING. 13 Make sure a 64-bit char is never passed to CHAR_STRING.