Commit d38cf2966 for imagemagick.org

commit d38cf2966ff1ebea7f89e1764910e83c22f1ddad
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Tue Mar 10 10:22:19 2026 -0400

    eliminate compiler warning

diff --git a/MagickCore/image-private.h b/MagickCore/image-private.h
index 94c4af825..2122074f5 100644
--- a/MagickCore/image-private.h
+++ b/MagickCore/image-private.h
@@ -212,7 +212,7 @@ static inline unsigned char CastDoubleToUChar(const double x)
       errno=ERANGE;
       return(MAGICK_UCHAR_MAX);
     }
-  return((unsigned short) value);
+  return((unsigned char) value);
 }

 static inline unsigned int CastDoubleToUInt(const double x)