Commit 9e76d3eb authored by Sebastian Ramacher's avatar Sebastian Ramacher

Use reasonable starting value

parent 3d4551b2
......@@ -548,8 +548,8 @@ colorumax(const double h[3], double l, double l1, double l2)
}
const double lv = (l - l1) / (l2 - l1); /* Remap l to the whole interval [0,1] */
double u = 1000000;
double v = u;
double u = DBL_MAX;
double v = DBL_MAX;
for (int k = 0; k < 3; k++) {
if (h[k] > DBL_EPSILON) {
const double uu = fabs((1-l)/h[k]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment