diff options
| author | Po Lu | 2022-09-03 21:45:46 +0800 |
|---|---|---|
| committer | Po Lu | 2022-09-03 21:45:46 +0800 |
| commit | b861adce060a8c11bfa302b820975a5f32a07cd1 (patch) | |
| tree | c4b508f3fb818f4e12f3b54efe75e2e95651013d /src | |
| parent | ab5ca80e745e86c33e6bec86c9331978d071d1a4 (diff) | |
| download | emacs-b861adce060a8c11bfa302b820975a5f32a07cd1.tar.gz emacs-b861adce060a8c11bfa302b820975a5f32a07cd1.zip | |
; * character.c (Fmax_char): Fix build with type checking.
Diffstat (limited to 'src')
| -rw-r--r-- | src/character.c | 4 |
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. */ | |||
| 185 | attributes: const) | 185 | attributes: const) |
| 186 | (Lisp_Object unicode) | 186 | (Lisp_Object unicode) |
| 187 | { | 187 | { |
| 188 | return unicode ? make_fixnum (MAX_UNICODE_CHAR) : make_fixnum (MAX_CHAR); | 188 | return (!NILP (unicode) |
| 189 | ? make_fixnum (MAX_UNICODE_CHAR) | ||
| 190 | : make_fixnum (MAX_CHAR)); | ||
| 189 | } | 191 | } |
| 190 | 192 | ||
| 191 | DEFUN ("unibyte-char-to-multibyte", Funibyte_char_to_multibyte, | 193 | DEFUN ("unibyte-char-to-multibyte", Funibyte_char_to_multibyte, |