Commit 3d7013baa for imagemagick.org
commit 3d7013baae062409464aaf8f7084e17a72286f80
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sun Aug 2 08:55:53 2026 -0400
eliminate compiler exception
diff --git a/MagickCore/constitute.c b/MagickCore/constitute.c
index b6b7492c1..41691c5ef 100644
--- a/MagickCore/constitute.c
+++ b/MagickCore/constitute.c
@@ -1140,7 +1140,7 @@ static MagickBooleanType GetImplicitDataImageType(const char *data_url,
p++;
if (p == type)
return(MagickFalse);
- slash=memchr(type,'/',(size_t) (p-type));
+ slash=(const char *) memchr(type,'/',(size_t) (p-type));
if ((slash == (const char *) NULL) || ((slash+1) >= p))
return(MagickFalse);
offset=(size_t) (p-(slash+1));