changeset 104636:bc74846b9a54

(encode_coding_utf_16): Fix checking of an Unicode character.
author Kenichi Handa <handa@m17n.org>
date Thu, 27 Aug 2009 07:30:29 +0000
parents 3401053d8020
children fcd96c296cb4
files src/coding.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Thu Aug 27 07:25:43 2009 +0000
+++ b/src/coding.c	Thu Aug 27 07:30:29 2009 +0000
@@ -1858,7 +1858,7 @@
     {
       ASSURE_DESTINATION (safe_room);
       c = *charbuf++;
-      if (c >= MAX_UNICODE_CHAR)
+      if (c > MAX_UNICODE_CHAR)
 	c = coding->default_char;
 
       if (c < 0x10000)