From 666d7fcf17781f56a1a02e5b68df731bf4d614af Mon Sep 17 00:00:00 2001 From: Kenneth Vanhoey Date: Tue, 13 Nov 2012 17:37:01 +0100 Subject: [PATCH] Bug correction in colourConverter --- include/Utils/colourConverter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Utils/colourConverter.hpp b/include/Utils/colourConverter.hpp index f97a025d..b7370dcf 100644 --- a/include/Utils/colourConverter.hpp +++ b/include/Utils/colourConverter.hpp @@ -256,7 +256,7 @@ void ColourConverter::convertHSVtoRGB() const REAL& s = (*HSV)[1] ; const REAL& v = (*HSV)[2] ; - const unsigned int Hi = (unsigned int)(std::floor(H / 60)) % 6 ; + const unsigned int Hi = (unsigned int)(floor(H / 60)) % 6 ; const REAL f = (H / 60) - Hi ; const REAL l = v * (1 - s) ; const REAL m = v * (1 - f * s) ; -- GitLab