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:
committed by
Stefan Seefeld
parent
b90e1780d6
commit
fc5e0eb35b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user