From df975da715a21297cf9919220f423abcdbd10de0 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 15 Aug 2021 15:57:54 -0400 Subject: [PATCH] cwNumericConvert.h : Remove verification of double value vs d_min in numeric_convert(). --- cwNumericConvert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwNumericConvert.h b/cwNumericConvert.h index c1a1b52..5e4b022 100644 --- a/cwNumericConvert.h +++ b/cwNumericConvert.h @@ -40,7 +40,7 @@ namespace cw // and avoid the double conversion double d_min = 0; // std::numeric_limits::min() return smallest positive number which then fails this test when 'src' is zero. double d_max = std::numeric_limits::max(); - if( d_min <= (double)src && (double)src <= d_max ) + if( (double)src <= d_max ) dst = src; else return cwLogError(kInvalidArgRC,"Numeric conversion failed. The source value is outside the range of the destination value. min:%f max:%f src:%f",d_min,d_max,(double)src );