GraphicsMagick: MIFF: Add missing cast for purpose of consistency.

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.30293.1658964411.1353.graphicsmagick-commit@lists.sourceforge.net>
changeset 0a06f497d588 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=0a06f497d588
summary: MIFF: Add missing cast for purpose of consistency.

diffstat:

 ChangeLog                              |  7 +++++++
 VisualMagick/installer/inc/version.isx |  4 ++--
 coders/miff.c                          |  2 +-
 magick/version.h                       |  4 ++--
 www/Changelog.html                     |  6 ++++++
 5 files changed, 18 insertions(+), 5 deletions(-)

diffs (67 lines):

diff -r b87eeec2e0c3 -r 0a06f497d588 ChangeLog
--- a/ChangeLog	Sat Jul 23 08:24:15 2022 -0500
+++ b/ChangeLog	Wed Jul 27 18:26:42 2022 -0500
@@ -1,3 +1,10 @@
+2022-07-27  Bob Friesenhahn  <[email protected]>
+
+        * coders/miff.c (ImportRLEPixels): Add missing type cast for
+        consistency with other similar code.  However, I do not believe
+        this is an actual bug.  Addresses GraphicsMagick bug 670 "Missing
+        cast".
+
 2022-07-23  Bob Friesenhahn  <[email protected]>
 
         * magick/magic.c: Auto-detect JXL format based on file header.
diff -r b87eeec2e0c3 -r 0a06f497d588 VisualMagick/installer/inc/version.isx
--- a/VisualMagick/installer/inc/version.isx	Sat Jul 23 08:24:15 2022 -0500
+++ b/VisualMagick/installer/inc/version.isx	Wed Jul 27 18:26:42 2022 -0500
@@ -10,5 +10,5 @@
 
 #define public MagickPackageName "GraphicsMagick"
 #define public MagickPackageVersion "1.4"
-#define public MagickPackageVersionAddendum ".020220723"
-#define public MagickPackageReleaseDate "snapshot-20220723"
+#define public MagickPackageVersionAddendum ".020220727"
+#define public MagickPackageReleaseDate "snapshot-20220727"
diff -r b87eeec2e0c3 -r 0a06f497d588 coders/miff.c
--- a/coders/miff.c	Sat Jul 23 08:24:15 2022 -0500
+++ b/coders/miff.c	Wed Jul 27 18:26:42 2022 -0500
@@ -389,7 +389,7 @@
                       quantum|=((unsigned int) *p++);
                       pixel.red=ScaleShortToQuantum(quantum);
                       quantum= ((unsigned int) *p++ << 8);
-                      quantum|=(*p++);
+                      quantum|=((unsigned int) *p++);
                       pixel.green=ScaleShortToQuantum(quantum);
                       quantum =((unsigned int) *p++ << 8);
                       quantum|=((unsigned int) *p++);
diff -r b87eeec2e0c3 -r 0a06f497d588 magick/version.h
--- a/magick/version.h	Sat Jul 23 08:24:15 2022 -0500
+++ b/magick/version.h	Wed Jul 27 18:26:42 2022 -0500
@@ -38,8 +38,8 @@
 #define MagickLibVersion  0x272400
 #define MagickLibVersionText  "1.4"
 #define MagickLibVersionNumber 27,24,0
-#define MagickChangeDate   "20220723"
-#define MagickReleaseDate  "snapshot-20220723"
+#define MagickChangeDate   "20220727"
+#define MagickReleaseDate  "snapshot-20220727"
 
 /*
   The MagickLibInterfaceNewest and MagickLibInterfaceOldest defines
diff -r b87eeec2e0c3 -r 0a06f497d588 www/Changelog.html
--- a/www/Changelog.html	Sat Jul 23 08:24:15 2022 -0500
+++ b/www/Changelog.html	Wed Jul 27 18:26:42 2022 -0500
@@ -35,6 +35,12 @@
 <div class="document">
 
 
+<p>2022-07-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>
+* coders/miff.c (ImportRLEPixels): Add missing type cast for
+consistency with other similar code.  However, I do not believe
+this is an actual bug.  Addresses GraphicsMagick bug 670 &quot;Missing
+cast&quot;.</blockquote>
 <p>2022-07-23  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>
 * magick/magic.c: Auto-detect JXL format based on file header.
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.