Commit 55a6aafc1 for imagemagick.org
commit 55a6aafc1ce1a3c2defff626581062594ef00880
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sun Jul 12 21:49:01 2026 -0400
eliminate compiler warning
diff --git a/coders/jxl.c b/coders/jxl.c
index 1007991a7..d61db4be5 100644
--- a/coders/jxl.c
+++ b/coders/jxl.c
@@ -992,7 +992,7 @@ static MagickBooleanType WriteJXLImage(const ImageInfo *image_info,Image *image,
*exif_profile = (StringInfo *) NULL,
*xmp_profile = (StringInfo *) NULL;
- float
+ double
distance = -1.0;
JxlBasicInfo
@@ -1196,7 +1196,7 @@ static MagickBooleanType WriteJXLImage(const ImageInfo *image_info,Image *image,
if (distance <= 0.0)
(void) JxlEncoderSetFrameLossless(frame_settings,1);
else
- (void) JxlEncoderSetFrameDistance(frame_settings,distance);
+ (void) JxlEncoderSetFrameDistance(frame_settings,(float) distance);
}
option=GetImageOption(image_info,"jxl:effort");
if (option != (const char *) NULL)