Fix return mixup in previous commit

This commit is contained in:
Seth Hillbrand 2019-09-04 16:15:46 -07:00
parent ac0df06312
commit 857355d537
1 changed files with 2 additions and 2 deletions

View File

@ -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() );