Skip to content

Commit

Permalink
Disable warning
Browse files Browse the repository at this point in the history
We got a warning while building:

 warning C4244: "=": Konvertierung von "double" in "cmsFloat32Number", möglicher Datenverlust

so I added the cast for cmsFloat32Number.
  • Loading branch information
MonkeybreadSoftware authored Nov 7, 2024
1 parent 70a39bf commit 5ee960a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmsxform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

1 comment on commit 5ee960a

@Jblitz87
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cc++

Please sign in to comment.