aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-09-24 18:27:19 -0700
committerPaul Eggert2011-09-24 18:27:19 -0700
commit60ad3eab6fe6e4278cf7674606357bd8d79c5d68 (patch)
tree83671c0ea602ad101b7203a174dca492336ece5f /src/ChangeLog
parent3c7649c1859d6252444044fd64c7b27d8e487f68 (diff)
downloademacs-60ad3eab6fe6e4278cf7674606357bd8d79c5d68.tar.gz
emacs-60ad3eab6fe6e4278cf7674606357bd8d79c5d68.zip
* charset.h (DECODE_CHAR): Return int, not unsigned;
this is what was intended anyway, and it avoids undefined behavior. (CHARSET_OFFSET): Remove unused macro, instead of fixing its integer-overflow issues. (ENCODE_CHAR): Return unsigned on all hosts, not just on 32-bit hosts. Formerly, it returned EMACS_INT on 64-bit hosts in the common case where the argument is EMACS_INT, and this behavior is not intended.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7973cc277e2..2e632bc5ad8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -119,6 +119,13 @@
119 (load_charset_map): Pass unsigned, not int, as 2nd arg of 119 (load_charset_map): Pass unsigned, not int, as 2nd arg of
120 INDEX_TO_CODE_POINT, as that's what it expects. 120 INDEX_TO_CODE_POINT, as that's what it expects.
121 (Funify_charset, encode_char): Don't stuff unsigned vals into int vars. 121 (Funify_charset, encode_char): Don't stuff unsigned vals into int vars.
122 * charset.h (DECODE_CHAR): Return int, not unsigned;
123 this is what was intended anyway, and it avoids undefined behavior.
124 (CHARSET_OFFSET): Remove unused macro, instead of fixing its
125 integer-overflow issues.
126 (ENCODE_CHAR): Return unsigned on all hosts, not just on 32-bit hosts.
127 Formerly, it returned EMACS_INT on 64-bit hosts in the common case
128 where the argument is EMACS_INT, and this behavior is not intended.
122 * chartab.c (Fmake_char_table, Fset_char_table_range) 129 * chartab.c (Fmake_char_table, Fset_char_table_range)
123 (uniprop_get_decoder, uniprop_get_encoder): 130 (uniprop_get_decoder, uniprop_get_encoder):
124 Don't assume fixnum fits in int. 131 Don't assume fixnum fits in int.