From cd4c6165c8dc545742f636366c2e513bca80a0c5 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 22 Jul 2011 23:54:01 +0200 Subject: [PATCH] double precision compilation fix --- src/luminaires/sky.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luminaires/sky.cpp b/src/luminaires/sky.cpp index a6b33459..2e3931b9 100644 --- a/src/luminaires/sky.cpp +++ b/src/luminaires/sky.cpp @@ -507,7 +507,7 @@ private: const Float yFrac = Y / y; const Float X = yFrac * x; /* It seems the following is necassary to stay always above zero */ - const Float z = std::max(0.0f, 1.0f - x - y); + const Float z = std::max((Float) 0.0f, 1.0f - x - y); const Float Z = yFrac * z; /* Create spectrum from XYZ values */