Kaydet (Commit) 0f6e4e7f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1250404 Operands don't affect result

trying to auto-ignore this one, so don't touch it manually in the UI so I can
experiment if this syntax will correctly auto-triage in all coverity instances

Change-Id: I4ae42a6828041f40c6ab8cb3cfc631c8dd38e8c8
üst eed1ea79
...@@ -63,6 +63,7 @@ Fraction::Fraction( double dVal ) ...@@ -63,6 +63,7 @@ Fraction::Fraction( double dVal )
bool Fraction::HasOverflowValue() bool Fraction::HasOverflowValue()
{ {
//coverity[constant_expression_result]
return value.numerator() < std::numeric_limits<long>::min() || return value.numerator() < std::numeric_limits<long>::min() ||
value.numerator() > std::numeric_limits<long>::max() || value.numerator() > std::numeric_limits<long>::max() ||
value.denominator() < std::numeric_limits<long>::min() || value.denominator() < std::numeric_limits<long>::min() ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment