diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index dabd920e947..2c4bae4808a 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -38,7 +38,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 38 | #include "lisp.h" | 38 | #include "lisp.h" |
| 39 | #include "intervals.h" | 39 | #include "intervals.h" |
| 40 | #include "buffer.h" | 40 | #include "buffer.h" |
| 41 | #include "charset.h" | 41 | #include "character.h" |
| 42 | #include "coding.h" | 42 | #include "coding.h" |
| 43 | #include "frame.h" | 43 | #include "frame.h" |
| 44 | #include "window.h" | 44 | #include "window.h" |
| @@ -175,9 +175,7 @@ usage: (char-to-string CHAR) */) | |||
| 175 | 175 | ||
| 176 | CHECK_NUMBER (character); | 176 | CHECK_NUMBER (character); |
| 177 | 177 | ||
| 178 | len = (SINGLE_BYTE_CHAR_P (XFASTINT (character)) | 178 | len = CHAR_STRING (XFASTINT (character), str); |
| 179 | ? (*str = (unsigned char)(XFASTINT (character)), 1) | ||
| 180 | : char_to_string (XFASTINT (character), str)); | ||
| 181 | return make_string_from_bytes (str, 1, len); | 179 | return make_string_from_bytes (str, 1, len); |
| 182 | } | 180 | } |
| 183 | 181 | ||