From 5ee960a4547b9bd2e44962719a17a485fc42429d Mon Sep 17 00:00:00 2001 From: Christian Schmitz Date: Thu, 7 Nov 2024 20:19:14 +0100 Subject: [PATCH 1/2] 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 { From 5f8971da493a9c599ad01a0bb13e889d13f1fd1b Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Thu, 21 Nov 2024 19:06:58 +0100 Subject: [PATCH 2/2] Update src/cmsxform.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Miloš Komarčević <4973094+kmilos@users.noreply.github.com> --- src/cmsxform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmsxform.c b/src/cmsxform.c index 89b68b6d..e5b6741e 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] = (cmsFloat32Number) (ContextAlarmCodes->AlarmCodes[c] / 65535.0); + fOut[c] = ContextAlarmCodes->AlarmCodes[c] / 65535.0F; } else {