Merge pull request #79 from jweyrich/master

Fix missing parameter for comparisons between long and unsigned X.
This commit is contained in:
Phil Nash 2012-04-28 04:11:32 -07:00
commit 5e82dcd62f
2 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -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>