GraphicsMagick: AddIFDExifFields(): Add casts to prevent signed ...

GraphicsMagick Commits <[email protected]> Tue, 06 Feb 2024 08:06:47 -0600
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.9294.1707228415.19238.graphicsmagick-commit@lists.sourceforge.net>
changeset 233335b7c452 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=233335b7c452
summary: AddIFDExifFields(): Add casts to prevent signed vs unsigned char pointer warnings.

diffstat:

 ChangeLog          |  3 +++
 coders/tiff.c      |  4 ++--
 www/ChangeLog.html |  2 ++
 3 files changed, 7 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 16f4f6073a2a -r 233335b7c452 ChangeLog
--- a/ChangeLog	Tue Feb 06 07:59:49 2024 -0600
+++ b/ChangeLog	Tue Feb 06 08:06:44 2024 -0600
@@ -1,5 +1,8 @@
 2024-02-06  Bob Friesenhahn  <[email protected]>
 
+	* coders/tiff.c (AddIFDExifFields): Add casts to prevent signed vs
+	unsigned char pointer warnings.
+
 	* m4/ltversion.m4: Update to libtool 2.4.7.
 
 2024-02-06  Fojtik Jaroslav  <[email protected]>
diff -r 16f4f6073a2a -r 233335b7c452 coders/tiff.c
--- a/coders/tiff.c	Tue Feb 06 07:59:49 2024 -0600
+++ b/coders/tiff.c	Tue Feb 06 08:06:44 2024 -0600
@@ -4565,13 +4565,13 @@
                              break;		/* Incompatible recipe.*/
                          if(Long2<=4)
                          {
-                           if(CheckAndStoreStr(tiff, Tag, IFD_data+8, Long2))	/* The short string is inside Value. */
+                           if(CheckAndStoreStr(tiff, Tag, (const char *) IFD_data+8, Long2))	/* The short string is inside Value. */
                              FieldCount++;
                          }
                          else
                          {
                            if(Value+Long2>=profile_length-1) break;		/* String outside EXIF boundary. */
-                           if(CheckAndStoreStr(tiff, Tag, profile_data+Value, Long2))
+                           if(CheckAndStoreStr(tiff, Tag, (const char *) profile_data+Value, Long2))
                              FieldCount++;
                          }
                          break;
diff -r 16f4f6073a2a -r 233335b7c452 www/ChangeLog.html
--- a/www/ChangeLog.html	Tue Feb 06 07:59:49 2024 -0600
+++ b/www/ChangeLog.html	Tue Feb 06 08:06:44 2024 -0600
@@ -41,6 +41,8 @@
 <p>2024-02-06  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>coders/tiff.c (AddIFDExifFields): Add casts to prevent signed vs
+unsigned char pointer warnings.</p></li>
 <li><p>m4/ltversion.m4: Update to libtool 2.4.7.</p></li>
 </ul>
 </blockquote>