Make sure a 64-bit char is never passed to ENCODE_CHAR.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 01:07:35 +0000 (18:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 01:07:35 +0000 (18:07 -0700)
commit34206dd201b905b8f9eec84b4e90ba591b06a79a
tree3a08862ed4619be5f2675986ec463d3432267cee
parentc5958d4cf336fdbc30364e7d701d6565acaf4002
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.
src/ChangeLog
src/charset.c
src/charset.h