diff options
Diffstat (limited to 'third_party/qcms/src/iccread.c')
-rw-r--r-- | third_party/qcms/src/iccread.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/qcms/src/iccread.c b/third_party/qcms/src/iccread.c index 36b7011..2454924 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]) && |