changeset 23720:3371f3bd2057

(non_ascii_char_to_string): If C is negative, signal error.
author Kenichi Handa <handa@m17n.org>
date Mon, 16 Nov 1998 06:26:27 +0000
parents 5802b0df4800
children e593fb9c68c3
files src/charset.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.c	Mon Nov 16 06:26:27 1998 +0000
+++ b/src/charset.c	Mon Nov 16 06:26:27 1998 +0000
@@ -141,6 +141,9 @@
 {
   int charset, c1, c2;
 
+  if (c < 0)
+    invalid_character (c);
+
   if (COMPOSITE_CHAR_P (c))
     {
       int cmpchar_id = COMPOSITE_CHAR_ID (c);