Fix return mixup in previous commit
This commit is contained in:
parent
ac0df06312
commit
857355d537
|
@ -116,8 +116,8 @@ constexpr ret_type KiROUND( fp_type v )
|
|||
using max_ret = long long int;
|
||||
fp_type ret = v < 0 ? v - 0.5 : v + 0.5;
|
||||
|
||||
if( std::numeric_limits<ret_type>::max() > ret ||
|
||||
std::numeric_limits<ret_type>::lowest() < ret )
|
||||
if( std::numeric_limits<ret_type>::max() < ret ||
|
||||
std::numeric_limits<ret_type>::lowest() > ret )
|
||||
{
|
||||
wxLogDebug
|
||||
( "Overflow KiROUND converting value %f to %s", double( v ), typeid(ret_type).name() );
|
||||
|
|
Loading…
Reference in New Issue