Skip to content

Commit e3fc743

Browse files
committed
better
1 parent 3f5b52e commit e3fc743

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/geode/basic/range.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ namespace geode
8181
: iter_( static_cast< Type >( begin ) ),
8282
last_( static_cast< Type >( end ) )
8383
{
84-
OPENGEODE_EXCEPTION( begin <= std::numeric_limits< Type >::max(),
84+
OPENGEODE_EXCEPTION( begin <= static_cast< T1 >(
85+
std::numeric_limits< Type >::max() ),
8586
"[Range] Invalid range" );
86-
OPENGEODE_EXCEPTION( end <= std::numeric_limits< Type >::max(),
87+
OPENGEODE_EXCEPTION(
88+
end <= static_cast< T2 >( std::numeric_limits< Type >::max() ),
8789
"[Range] Invalid range" );
8890
}
8991

0 commit comments

Comments
 (0)