diff options
author | 2018-05-04 13:44:26 +0000 | |
---|---|---|
committer | 2018-05-04 14:34:22 +0000 | |
commit | 4824ed05ac126a4de5322f93e5af821d611b974d (patch) | |
tree | f3a958270822155c6a861945d3a0c490cc2e4dc7 /third_party/skcms/src | |
parent | da926dbd6978202a6ced783cd184cb8512cde2aa (diff) |
Roll skia/third_party/skcms cc1799c..02fc32e (1 commits)
https://skia.googlesource.com/skcms.git/+log/cc1799c..02fc32e
2018-05-04 mtklein@chromium.org pull in roundtrip thresholds much more tightly
The AutoRoll server is located here: https://skcms-skia-roll.skia.org
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
TBR=brianosman@google.com
Change-Id: If327b95b8d9b81e95b3047f9f9499d6282aa4dee
Reviewed-on: https://skia-review.googlesource.com/125942
Commit-Queue: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Reviewed-by: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Diffstat (limited to 'third_party/skcms/src')
-rw-r--r-- | third_party/skcms/src/PolyTF.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/skcms/src/PolyTF.c b/third_party/skcms/src/PolyTF.c index 62da2d488f..6ffbc5049e 100644 --- a/third_party/skcms/src/PolyTF.c +++ b/third_party/skcms/src/PolyTF.c @@ -149,7 +149,7 @@ static bool fit_poly_tf(const skcms_Curve* curve, skcms_PolyTF* tf) { float rt = skcms_TransferFunction_eval(&inv, eval_poly_tf(x, A,B,C,D)) * (N-1) + 0.5f; - if (!isfinitef_(rt) || rt > INT_MAX || rt < -INT_MAX) { + if (!isfinitef_(rt) || rt >= N || rt < 0) { return false; } |