summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/character.c4
1 files changed, 3 insertions, 1 deletions
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,