GraphicsMagick: Fixed signed vs unsigned comparison warnings on ...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.337.1641742509.2413.graphicsmagick-commit@lists.sourceforge.net>
changeset ab97cafd3e68 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=ab97cafd3e68
summary: Fixed signed vs unsigned comparison warnings on 32-bit systems.

diffstat:

 magick/blob.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e8eab91c6d23 -r ab97cafd3e68 magick/blob.c
--- a/magick/blob.c	Sun Jan 09 09:02:30 2022 -0600
+++ b/magick/blob.c	Sun Jan 09 09:35:00 2022 -0600
@@ -274,7 +274,7 @@
     }
   *data=(void *)(blob->data+blob->offset);
   available=Min(Min(length,blob->read_limit-blob->read_total),
-                blob->length-blob->offset);
+                (size_t)(blob->length-blob->offset));
   blob->offset+=available;
   if (available == 0)
     blob->eof=True;
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.