aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2014-05-26 23:37:29 -0700
committerPaul Eggert2014-05-26 23:37:29 -0700
commitc24163d444ba9256b9efee8e7d8f1c65386b1e2a (patch)
treee01a2085952dda27d45ec0136c80bcee82b6d1a7 /src
parent1ad913a1ae32c2f4bdf22edcc7047584bebfce0d (diff)
downloademacs-c24163d444ba9256b9efee8e7d8f1c65386b1e2a.tar.gz
emacs-c24163d444ba9256b9efee8e7d8f1c65386b1e2a.zip
* image.c (imagemagick_load_image): Use MagickRealType for local
'color_scale', instead of double, to avoid a GCC warning about double promotion.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/image.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7e270789094..4378cfce5d3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12014-05-27 Paul Eggert <eggert@cs.ucla.edu> 12014-05-27 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * image.c (imagemagick_load_image): Use MagickRealType for local
4 'color_scale', instead of double, to avoid a GCC warning about
5 double promotion.
6
3 * xfns.c (Fx_window_property): Remove unused local. 7 * xfns.c (Fx_window_property): Remove unused local.
4 8
5 Don't kill already-reaped process (Bug#17561). 9 Don't kill already-reaped process (Bug#17561).
diff --git a/src/image.c b/src/image.c
index f7c3ef52563..07cf9f9af49 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8368,7 +8368,7 @@ imagemagick_load_image (struct frame *f, struct image *img,
8368#endif /* HAVE_MAGICKEXPORTIMAGEPIXELS */ 8368#endif /* HAVE_MAGICKEXPORTIMAGEPIXELS */
8369 { 8369 {
8370 size_t image_height; 8370 size_t image_height;
8371 double color_scale = 65535.0 / QuantumRange; 8371 MagickRealType color_scale = 65535.0 / QuantumRange;
8372 8372
8373 /* Try to create a x pixmap to hold the imagemagick pixmap. */ 8373 /* Try to create a x pixmap to hold the imagemagick pixmap. */
8374 if (!image_create_x_image_and_pixmap (f, img, width, height, 0, 8374 if (!image_create_x_image_and_pixmap (f, img, width, height, 0,