mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Fix missing parameter for comparisons between long and unsigned X.
This commit is contained in:
parent
7ec6d27000
commit
11dca66336
@ -160,15 +160,15 @@ namespace Internal
|
||||
// long to unsigned X
|
||||
template<Operator Op> bool compare( long lhs, unsigned int rhs )
|
||||
{
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ) );
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ), rhs );
|
||||
}
|
||||
template<Operator Op> bool compare( long lhs, unsigned long rhs )
|
||||
{
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ) );
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ), rhs );
|
||||
}
|
||||
template<Operator Op> bool compare( long lhs, unsigned char rhs )
|
||||
{
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ) );
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ), rhs );
|
||||
}
|
||||
|
||||
template<Operator Op, typename T>
|
||||
|
@ -1265,15 +1265,15 @@ namespace Internal
|
||||
// long to unsigned X
|
||||
template<Operator Op> bool compare( long lhs, unsigned int rhs )
|
||||
{
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ) );
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ), rhs );
|
||||
}
|
||||
template<Operator Op> bool compare( long lhs, unsigned long rhs )
|
||||
{
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ) );
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ), rhs );
|
||||
}
|
||||
template<Operator Op> bool compare( long lhs, unsigned char rhs )
|
||||
{
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ) );
|
||||
return applyEvaluator<Op>( static_cast<unsigned long>( lhs ), rhs );
|
||||
}
|
||||
|
||||
template<Operator Op, typename T>
|
||||
|
Loading…
Reference in New Issue
Block a user