Skip to content

Commit 04e6ff1

Browse files
committed
Fix windows build
1 parent 4a15a81 commit 04e6ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/templates/FloatingPoint.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ namespace vx::floating_point {
7171
auto factor = static_cast<T>( 1 );
7272
if ( _equal == Equal::Relative ) {
7373

74-
factor = std::max( std::abs( _left ), std::abs( _right ) );
74+
factor = std::max<T>( std::abs( _left ), std::abs( _right ) );
7575
}
7676
else if ( _equal == Equal::Combined ) {
7777

78-
factor = std::max( { factor, std::abs( _left ), std::abs( _right ) } );
78+
factor = std::max<T>( factor, std::max<T>( std::abs( _left ), std::abs( _right ) ) );
7979
}
8080
return std::abs( _left - _right ) <= std::numeric_limits<T>::epsilon() * factor;
8181
}

0 commit comments

Comments
 (0)