Skip to content

Commit 2e673ea

Browse files
committed
Fix potential compile issue on Windows
1 parent f3ee04a commit 2e673ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SpecUtils/ParseUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ Integral float_to_integral( float d )
286286
if( exp <= max_exp )
287287
return static_cast<Integral>( d );
288288

289-
static constexpr Integral min_int_val = std::numeric_limits<Integral>::min();
290-
static constexpr Integral max_int_val = std::numeric_limits<Integral>::max();
289+
static constexpr Integral min_int_val = (std::numeric_limits<Integral>::min)();
290+
static constexpr Integral max_int_val = (std::numeric_limits<Integral>::max)();
291291
return std::signbit(d) ? min_int_val : max_int_val;
292292
}//float_to_integral
293293
}//namespace SpecUtils

0 commit comments

Comments
 (0)