[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b861adce06 1/2: ; * character.c (Fmax_char): Fix build with type
From: |
Po Lu |
Subject: |
master b861adce06 1/2: ; * character.c (Fmax_char): Fix build with type checking. |
Date: |
Sat, 3 Sep 2022 09:50:29 -0400 (EDT) |
branch: master
commit b861adce060a8c11bfa302b820975a5f32a07cd1
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
; * character.c (Fmax_char): Fix build with type checking.
---
src/character.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/character.c b/src/character.c
index dc21649b22..5df49adade 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,