projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab5ca80
)
; * character.c (Fmax_char): Fix build with type checking.
author
Po Lu
<luangruo@yahoo.com>
Sat, 3 Sep 2022 13:45:46 +0000
(21:45 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Sat, 3 Sep 2022 13:45:46 +0000
(21:45 +0800)
src/character.c
patch
|
blob
|
history
diff --git
a/src/character.c
b/src/character.c
index dc21649b226b351535ca5beea82f029832fdf62a..5df49adade92cb61352a49b139e4a341e6c71a04 100644
(file)
--- 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,