diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-30 14:28:19 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-30 14:28:39 -0700 |
commit | 6d6f45e21830a57b4a12af0f89913752a137a653 (patch) | |
tree | 478a404202b9c9d9f80aa66076d41ef60b37a015 /src/font.c | |
parent | 54b92132e1ec16565d59d6d9f8ff8910f38843b2 (diff) | |
download | emacs-6d6f45e21830a57b4a12af0f89913752a137a653.tar.gz |
Fix off-by-1 typo in recent bignum changes
Problem reported by Yuri D’Elia in:
https://lists.gnu.org/r/emacs-devel/2018-08/msg00977.html
and crucial clue provided by Michael Heerdegen in:
https://lists.gnu.org/r/emacs-devel/2018-08/msg01043.html
* src/font.c (font_unparse_xlfd): Fix off-by-1 typo.
Diffstat (limited to 'src/font.c')
-rw-r--r-- | src/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.c b/src/font.c index 4a63700f790..e2414582f67 100644 --- a/src/font.c +++ b/src/font.c @@ -1290,7 +1290,7 @@ font_unparse_xlfd (Lisp_Object font, int pixel_size, char *name, int nbytes) if (INTEGERP (val)) { intmax_t v = FIXNUMP (val) ? XFIXNUM (val) : bignum_to_intmax (val); - if (! (0 <= v && v <= TYPE_MAXIMUM (uprintmax_t))) + if (! (0 < v && v <= TYPE_MAXIMUM (uprintmax_t))) v = pixel_size; if (v > 0) { |