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: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~2295^2~762 X-Git-Url: https://dgit.raspbian.org/?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,