diff options
Diffstat (limited to 'src/font.c')
-rw-r--r-- | src/font.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/font.c b/src/font.c index 409ffa6ae0c..b4a85a1ca5a 100644 --- a/src/font.c +++ b/src/font.c @@ -1295,14 +1295,12 @@ font_unparse_xlfd (Lisp_Object font, int pixel_size, char *name, int nbytes) if (INTEGERP (val)) { intmax_t v; - if (! (integer_to_intmax (val, &v) - && 0 < v && v <= TYPE_MAXIMUM (uprintmax_t))) + if (! (integer_to_intmax (val, &v) && 0 < v)) v = pixel_size; if (v > 0) { - uprintmax_t u = v; f[XLFD_PIXEL_INDEX] = p = font_size_index_buf; - sprintf (p, "%"pMu"-*", u); + sprintf (p, "%"PRIdMAX"-*", v); } else f[XLFD_PIXEL_INDEX] = "*-*"; |