* charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
authorKen Raeburn <raeburn@raeburn.org>
Sat, 8 Apr 2000 19:39:03 +0000 (19:39 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Sat, 8 Apr 2000 19:39:03 +0000 (19:39 +0000)
charset id (int) argument, not a charset (Lisp_Object).

src/ChangeLog
src/charset.c

index 2870cf3..2e2358e 100644 (file)
@@ -1,5 +1,8 @@
 2000-04-08  Ken Raeburn  <raeburn@gnu.org>
 
+       * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
+       charset id (int) argument, not a charset (Lisp_Object).
+
        * coding.h (code_convert_string): Declare.
        * coding.c (code_convert_string_norecord): Pass an int, not a lisp
        object, as the fourth argument to code_convert_string.
index c040134..52ba5f2 100644 (file)
@@ -961,8 +961,8 @@ DEFUN ("make-char-internal", Fmake_char_internal, Smake_char_internal, 1, 3, 0,
   if (c1 == 0
       ? c2 != 0
       : (c2 == 0
-        ? !CHAR_COMPONENTS_VALID_P (charset, c1, 0x20)
-        : !CHAR_COMPONENTS_VALID_P (charset, c1, c2)))
+        ? !CHAR_COMPONENTS_VALID_P (charset_id, c1, 0x20)
+        : !CHAR_COMPONENTS_VALID_P (charset_id, c1, c2)))
     error ("Invalid code points for charset ID %d: %d %d", charset_id, c1, c2);
 
   return make_number (MAKE_CHAR (charset_id, c1, c2));