]> git.eshelyaron.com Git - emacs.git/commitdiff
; * character.c (Fmax_char): Fix build with type checking.
authorPo Lu <luangruo@yahoo.com>
Sat, 3 Sep 2022 13:45:46 +0000 (21:45 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 3 Sep 2022 13:45:46 +0000 (21:45 +0800)
src/character.c

index dc21649b226b351535ca5beea82f029832fdf62a..5df49adade92cb61352a49b139e4a341e6c71a04 100644 (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,