GraphicsMagick: Magick++/lib/Color.cpp, Magick++/lib/Image.cpp A...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.26249.1670080993.1567.graphicsmagick-commit@lists.sourceforge.net>
changeset 1a9f94ce0c30 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=1a9f94ce0c30
summary: Magick++/lib/Color.cpp, Magick++/lib/Image.cpp Add Quantum casts to Color() arguments

diffstat:

 ChangeLog                              |  10 ++++++++++
 Magick++/lib/Color.cpp                 |   6 +++---
 Magick++/lib/Image.cpp                 |   2 +-
 VisualMagick/installer/inc/version.isx |   4 ++--
 magick/version.h                       |   4 ++--
 www/Changelog.html                     |  20 ++++++++++++++++++++
 6 files changed, 38 insertions(+), 8 deletions(-)

diffs (100 lines):

diff -r d4192d2958fd -r 1a9f94ce0c30 ChangeLog
--- a/ChangeLog	Sat Dec 03 10:59:46 2022 +0100
+++ b/ChangeLog	Sat Dec 03 09:23:02 2022 -0600
@@ -1,3 +1,13 @@
+2022-12-03  Bob Friesenhahn  <[email protected]>
+
+	* Magick++/lib/Color.cpp: Add Quantum casts to Color() arguments
+	to solve error with unidentified compiler.  SourceForge issue #160
+	"Add Quantum casts for 16-bit to Image.cpp and Color.cpp".
+
+	* Magick++/lib/Image.cpp: Add Quantum casts to Color() arguments
+	to solve error with unidentified compiler.  SourceForge issue #160
+	"Add Quantum casts for 16-bit to Image.cpp and Color.cpp".
+
 2022-12-01 Fojtik Jaroslav  <[email protected]>
 
 	coders/ps2.c
diff -r d4192d2958fd -r 1a9f94ce0c30 Magick++/lib/Color.cpp
--- a/Magick++/lib/Color.cpp	Sat Dec 03 10:59:46 2022 +0100
+++ b/Magick++/lib/Color.cpp	Sat Dec 03 09:23:02 2022 -0600
@@ -511,9 +511,9 @@
 // ColorMono Implementation
 //
 Magick::ColorMono::ColorMono ( bool mono_  )
-  : Color ( ( mono_ ? MaxRGB : 0 ),
-            ( mono_ ? MaxRGB : 0 ),
-            ( mono_ ? MaxRGB : 0 ) )
+  : Color ( ( mono_ ? (Quantum) MaxRGB : (Quantum) 0U ),
+            ( mono_ ? (Quantum) MaxRGB : (Quantum) 0U ),
+            ( mono_ ? (Quantum) MaxRGB : (Quantum) 0U ) )
 {
   alphaQuantum ( OpaqueOpacity );
 }
diff -r d4192d2958fd -r 1a9f94ce0c30 Magick++/lib/Image.cpp
--- a/Magick++/lib/Image.cpp	Sat Dec 03 10:59:46 2022 +0100
+++ b/Magick++/lib/Image.cpp	Sat Dec 03 09:23:02 2022 -0600
@@ -2563,7 +2563,7 @@
   // Initialize any new new colormap entries as all black
   if (imageptr->colormap)
     {
-      Color black(0,0,0);
+      Color black((Quantum) 0U,(Quantum) 0U,(Quantum) 0U);
       for( unsigned int i=imageptr->colors; i< (entries_-1); i++ )
         (imageptr->colormap)[i] = black;
 
diff -r d4192d2958fd -r 1a9f94ce0c30 VisualMagick/installer/inc/version.isx
--- a/VisualMagick/installer/inc/version.isx	Sat Dec 03 10:59:46 2022 +0100
+++ b/VisualMagick/installer/inc/version.isx	Sat Dec 03 09:23:02 2022 -0600
@@ -10,5 +10,5 @@
 
 #define public MagickPackageName "GraphicsMagick"
 #define public MagickPackageVersion "1.4"
-#define public MagickPackageVersionAddendum ".020221127"
-#define public MagickPackageReleaseDate "snapshot-20221127"
+#define public MagickPackageVersionAddendum ".020221203"
+#define public MagickPackageReleaseDate "snapshot-20221203"
diff -r d4192d2958fd -r 1a9f94ce0c30 magick/version.h
--- a/magick/version.h	Sat Dec 03 10:59:46 2022 +0100
+++ b/magick/version.h	Sat Dec 03 09:23:02 2022 -0600
@@ -38,8 +38,8 @@
 #define MagickLibVersion  0x272400
 #define MagickLibVersionText  "1.4"
 #define MagickLibVersionNumber 27,24,0
-#define MagickChangeDate   "20221127"
-#define MagickReleaseDate  "snapshot-20221127"
+#define MagickChangeDate   "20221203"
+#define MagickReleaseDate  "snapshot-20221203"
 
 /*
   The MagickLibInterfaceNewest and MagickLibInterfaceOldest defines
diff -r d4192d2958fd -r 1a9f94ce0c30 www/Changelog.html
--- a/www/Changelog.html	Sat Dec 03 10:59:46 2022 +0100
+++ b/www/Changelog.html	Sat Dec 03 09:23:02 2022 -0600
@@ -37,6 +37,26 @@
 </div>
 
 <div class="document">
+<p>2022-12-03  Bob Friesenhahn  &lt;<a class="reference external" href="mailto:bfriesen&#37;&#52;&#48;simple&#46;dallas&#46;tx&#46;us">bfriesen<span>&#64;</span>simple<span>&#46;</span>dallas<span>&#46;</span>tx<span>&#46;</span>us</a>&gt;</p>
+<blockquote>
+<ul class="simple">
+<li><p>Magick++/lib/Color.cpp: Add Quantum casts to Color() arguments
+to solve error with unidentified compiler.  SourceForge issue #160
+&quot;Add Quantum casts for 16-bit to Image.cpp and Color.cpp&quot;.</p></li>
+<li><p>Magick++/lib/Image.cpp: Add Quantum casts to Color() arguments
+to solve error with unidentified compiler.  SourceForge issue #160
+&quot;Add Quantum casts for 16-bit to Image.cpp and Color.cpp&quot;.</p></li>
+</ul>
+</blockquote>
+<p>2022-12-01 Fojtik Jaroslav  &lt;<a class="reference external" href="mailto:JaFojtik&#37;&#52;&#48;yandex&#46;com">JaFojtik<span>&#64;</span>yandex<span>&#46;</span>com</a>&gt;</p>
+<blockquote>
+<p>coders/ps2.c
+coders/ps3.c
+coders/tiff.c
+webp/src/webp/types.h
+tiff/libtiff/*          Upgraded libtiff to libtiff-4.4.0
+But code is still compilable with MSVC2008!</p>
+</blockquote>
 <p>2022-11-27  Bob Friesenhahn  &lt;<a class="reference external" href="mailto:bfriesen&#37;&#52;&#48;simple&#46;dallas&#46;tx&#46;us">bfriesen<span>&#64;</span>simple<span>&#46;</span>dallas<span>&#46;</span>tx<span>&#46;</span>us</a>&gt;</p>
 <blockquote>
 <ul class="simple">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.