* charset.h (DECODE_CHAR): Return int, not unsigned;
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Sep 2011 01:27:19 +0000 (18:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Sep 2011 01:27:19 +0000 (18:27 -0700)
commit60ad3eab6fe6e4278cf7674606357bd8d79c5d68
tree83671c0ea602ad101b7203a174dca492336ece5f
parent3c7649c1859d6252444044fd64c7b27d8e487f68
* 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.
src/ChangeLog
src/charset.h