; * character.c (Fmax_char): Fix build with type checking.

This commit is contained in:
Po Lu 2022-09-03 21:45:46 +08:00
parent ab5ca80e74
commit b861adce06

View file

@ -185,7 +185,9 @@ by the Unicode Standard. */
attributes: const)
(Lisp_Object unicode)
{
return unicode ? make_fixnum (MAX_UNICODE_CHAR) : make_fixnum (MAX_CHAR);
return (!NILP (unicode)
? make_fixnum (MAX_UNICODE_CHAR)
: make_fixnum (MAX_CHAR));
}
DEFUN ("unibyte-char-to-multibyte", Funibyte_char_to_multibyte,