aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/skcms
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/skcms')
-rw-r--r--third_party/skcms/src/GaussNewton.c3
-rwxr-xr-xthird_party/skcms/version.sha12
2 files changed, 3 insertions, 2 deletions
diff --git a/third_party/skcms/src/GaussNewton.c b/third_party/skcms/src/GaussNewton.c
index efbda240a4..11f55b53b4 100644
--- a/third_party/skcms/src/GaussNewton.c
+++ b/third_party/skcms/src/GaussNewton.c
@@ -8,6 +8,7 @@
#include "../skcms.h"
#include "GaussNewton.h"
#include "LinearAlgebra.h"
+#include "PortableMath.h"
#include "TransferFunction.h"
#include <assert.h>
#include <string.h>
@@ -90,7 +91,7 @@ bool skcms_gauss_newton_step(float (*rg)(float x, const void*, const float P[3],
P[0] += dP.vals[0];
P[1] += dP.vals[1];
P[2] += dP.vals[2];
- return true;
+ return isfinitef_(P[0]) && isfinitef_(P[1]) && isfinitef_(P[2]);
}
float skcms_eval_curve(float x, const skcms_Curve* curve) {
diff --git a/third_party/skcms/version.sha1 b/third_party/skcms/version.sha1
index 8ba237cecf..837b01de0d 100755
--- a/third_party/skcms/version.sha1
+++ b/third_party/skcms/version.sha1
@@ -1 +1 @@
-02fc32ea7f43008fd55a5fa0c12e43596aee4cd9 \ No newline at end of file
+bd901697fae021f892fd862c8031f0d7c2e3399b \ No newline at end of file