summaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/image.c b/src/image.c
index 6ead12166b6..b4b6c1bac1c 100644
--- a/src/image.c
+++ b/src/image.c
@@ -9735,8 +9735,8 @@ gs_image_p (Lisp_Object object)
static bool
gs_load (struct frame *f, struct image *img)
{
- uprintmax_t printnum1, printnum2;
- char buffer[sizeof " " + INT_STRLEN_BOUND (printmax_t)];
+ uintmax_t printnum1, printnum2;
+ char buffer[sizeof " " + 2 * INT_STRLEN_BOUND (intmax_t)];
Lisp_Object window_and_pixmap_id = Qnil, loader, pt_height, pt_width;
Lisp_Object frame;
double in_width, in_height;
@@ -9788,12 +9788,14 @@ gs_load (struct frame *f, struct image *img)
printnum1 = FRAME_X_DRAWABLE (f);
printnum2 = img->pixmap;
window_and_pixmap_id
- = make_formatted_string (buffer, "%"pMu" %"pMu, printnum1, printnum2);
+ = make_formatted_string (buffer, "%"PRIuMAX" %"PRIuMAX,
+ printnum1, printnum2);
printnum1 = FRAME_FOREGROUND_PIXEL (f);
printnum2 = FRAME_BACKGROUND_PIXEL (f);
pixel_colors
- = make_formatted_string (buffer, "%"pMu" %"pMu, printnum1, printnum2);
+ = make_formatted_string (buffer, "%"PRIuMAX" %"PRIuMAX,
+ printnum1, printnum2);
XSETFRAME (frame, f);
loader = image_spec_value (img->spec, QCloader, NULL);