double precision compilation fix

metadata
Wenzel Jakob 2011-07-22 23:54:01 +02:00
parent 0175931ed3
commit cd4c6165c8
1 changed files with 1 additions and 1 deletions

View File

@ -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 */