From 9e76d3eb4e23f25e4536fe9ed70c162b0865d1ee Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sun, 18 Mar 2018 18:28:16 +0100 Subject: [PATCH] Use reasonable starting value --- zathura/render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zathura/render.c b/zathura/render.c index 9391c45..20b988e 100644 --- a/zathura/render.c +++ b/zathura/render.c @@ -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]);