aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2018-08-30 14:28:19 -0700
committerPaul Eggert2018-08-30 14:28:39 -0700
commit6d6f45e21830a57b4a12af0f89913752a137a653 (patch)
tree478a404202b9c9d9f80aa66076d41ef60b37a015 /src
parent54b92132e1ec16565d59d6d9f8ff8910f38843b2 (diff)
downloademacs-6d6f45e21830a57b4a12af0f89913752a137a653.tar.gz
emacs-6d6f45e21830a57b4a12af0f89913752a137a653.zip
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')
-rw-r--r--src/font.c2
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)
1290 if (INTEGERP (val)) 1290 if (INTEGERP (val))
1291 { 1291 {
1292 intmax_t v = FIXNUMP (val) ? XFIXNUM (val) : bignum_to_intmax (val); 1292 intmax_t v = FIXNUMP (val) ? XFIXNUM (val) : bignum_to_intmax (val);
1293 if (! (0 <= v && v <= TYPE_MAXIMUM (uprintmax_t))) 1293 if (! (0 < v && v <= TYPE_MAXIMUM (uprintmax_t)))
1294 v = pixel_size; 1294 v = pixel_size;
1295 if (v > 0) 1295 if (v > 0)
1296 { 1296 {