Mercurial > emacs
changeset 90800:37b19435acef
(Fchar_to_string): Use CHARACTERP, not INTEGERP.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 11 Apr 2007 12:03:45 +0000 |
parents | 3230f896c629 |
children | 9ca7f975f363 |
files | src/editfns.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/editfns.c Wed Apr 11 11:53:22 2007 +0000 +++ b/src/editfns.c Wed Apr 11 12:03:45 2007 +0000 @@ -205,7 +205,7 @@ int len; unsigned char str[MAX_MULTIBYTE_LENGTH]; - CHECK_NUMBER (character); + CHECK_CHARACTER (character); len = CHAR_STRING (XFASTINT (character), str); return make_string_from_bytes (str, 1, len); @@ -2155,7 +2155,7 @@ for (argnum = 0; argnum < nargs; argnum++) { val = args[argnum]; - if (INTEGERP (val)) + if (CHARACTERP (val)) { unsigned char str[MAX_MULTIBYTE_LENGTH]; int len;