From: Po Lu Date: Sat, 3 Sep 2022 13:45:46 +0000 (+0800) Subject: ; * character.c (Fmax_char): Fix build with type checking. X-Git-Tag: emacs-29.0.90~1856^2~762 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b861adce060a8c11bfa302b820975a5f32a07cd1;p=emacs.git ; * character.c (Fmax_char): Fix build with type checking. --- diff --git a/src/character.c b/src/character.c index dc21649b226..5df49adade9 100644 --- a/src/character.c +++ b/src/character.c @@ -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,