summaryrefslogtreecommitdiff
path: root/extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-01 15:40:04 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-01 15:40:04 +0200
commit6172c0386e70e42268e3e60eb07d5478a5d8fdee (patch)
tree984837ca310dbf01246e179b9276240e06074d21 /extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch
parent1b2b400af7cef3cee29e7fd77f22cef52e475970 (diff)
downloadpackages-6172c0386e70e42268e3e60eb07d5478a5d8fdee.tar.xz
extra/imagemagick6: fixed compilation
Diffstat (limited to 'extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch')
-rw-r--r--extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch b/extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch
new file mode 100644
index 00000000..57e22254
--- /dev/null
+++ b/extra/imagemagick6/ImageMagick-6.9.10-11-bug17.patch
@@ -0,0 +1,17 @@
+diff -rauN ImageMagick-6.9.10-11/Magick++/lib/Magick++/Color.h ImageMagick-6.9.10-11-bug17-patch/Magick++/lib/Magick++/Color.h
+--- ImageMagick-6.9.10-11/Magick++/lib/Magick++/Color.h 2018-08-28 14:31:12.000000000 +0200
++++ ImageMagick-6.9.10-11-bug17-patch/Magick++/lib/Magick++/Color.h 2018-09-01 15:14:05.133038562 +0200
+@@ -122,11 +122,12 @@
+ {
+ return (static_cast<double>(quantum_)/QuantumRange);
+ }
+-#endif
++#else
+ static double scaleQuantumToDouble(const double quantum_)
+ {
+ return (quantum_/QuantumRange);
+ }
++#endif
+
+ protected:
+