| Index: third_party/qcms/src/iccread.c
|
| diff --git a/third_party/qcms/src/iccread.c b/third_party/qcms/src/iccread.c
|
| index 36b701179a91d41d1be5fb6dd7b7215bb88d7f3e..24549246eb3ebb736f9c35ca76248f300556e4ea 100644
|
| --- a/third_party/qcms/src/iccread.c
|
| +++ b/third_party/qcms/src/iccread.c
|
| @@ -297,6 +297,11 @@ qcms_bool qcms_profile_is_bogus(qcms_profile *profile)
|
| sum[1] = rY + gY + bY;
|
| sum[2] = rZ + gZ + bZ;
|
|
|
| +#if defined (_MSC_VER)
|
| +#pragma warning(push)
|
| +/* Disable double to float truncation warning 4305 */
|
| +#pragma warning(disable:4305)
|
| +#endif
|
| // Build our target vector (see mozilla bug 460629)
|
| target[0] = 0.96420;
|
| target[1] = 1.00000;
|
| @@ -310,6 +315,10 @@ qcms_bool qcms_profile_is_bogus(qcms_profile *profile)
|
| tolerance[1] = 0.02;
|
| tolerance[2] = 0.04;
|
|
|
| +#if defined (_MSC_VER)
|
| +/* Restore warnings */
|
| +#pragma warning(pop)
|
| +#endif
|
| // Compare with our tolerance
|
| for (i = 0; i < 3; ++i) {
|
| if (!(((sum[i] - tolerance[i]) <= target[i]) &&
|
|
|