From 5ee960a4547b9bd2e44962719a17a485fc42429d Mon Sep 17 00:00:00 2001 From: Christian Schmitz Date: Thu, 7 Nov 2024 20:19:14 +0100 Subject: [PATCH] Disable warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We got a warning while building: warning C4244: "=": Konvertierung von "double" in "cmsFloat32Number", möglicher Datenverlust so I added the cast for cmsFloat32Number. --- src/cmsxform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmsxform.c b/src/cmsxform.c index 7219c8b9..89b68b6d 100644 --- a/src/cmsxform.c +++ b/src/cmsxform.c @@ -297,7 +297,7 @@ void FloatXFORM(_cmsTRANSFORM* p, // Certainly, out of gamut for (c = 0; c < cmsMAXCHANNELS; c++) - fOut[c] = ContextAlarmCodes->AlarmCodes[c] / 65535.0; + fOut[c] = (cmsFloat32Number) (ContextAlarmCodes->AlarmCodes[c] / 65535.0); } else {