2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-18 14:12:10 +00:00

Small bugfix.

[SVN r85975]
This commit is contained in:
Christian Henning
2013-09-28 01:06:43 +00:00
committed by Stefan Seefeld
parent b90e1780d6
commit fc5e0eb35b

View File

@@ -88,7 +88,7 @@ struct default_color_converter_impl< rgb_t, hsv_t >
}
else
{
if( (std::abs)( boost::numeric_cast<int>(temp_red - max_color) ) < 0.0001f )
if( (std::abs)( boost::numeric_cast<bits32f>(temp_red - max_color) ) < 0.0001f )
{
hue = ( temp_green - temp_blue )
/ diff;