Skip to content

Commit

Permalink
Fix gamut check on floats
Browse files Browse the repository at this point in the history
Due to several optimizations introduced in 2.16, gamut check was broken. Added a fix and a unit test.
Thanks to Christian Schmitz and Danny Pascale for discovering this.
  • Loading branch information
mm2 committed Nov 5, 2024
1 parent 0cc0ec1 commit 5cc90d7
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 @@ -295,7 +295,7 @@ void FloatXFORM(_cmsTRANSFORM* p,

// Certainly, out of gamut
for (c = 0; c < cmsMAXCHANNELS; c++)
fOut[c] = -1.0;
fOut[c] = 1.0;

}
else {
Expand Down

0 comments on commit 5cc90d7

Please sign in to comment.