Skip to content

Commit 38201c9

Browse files
authored
checkcondition.cpp: fixed signedness in conversion in checkIncorrectLogicOperator() (danmar#7128)
exposed by compiler error with `USE_BOOST_INT128` enabled
1 parent 8f3d0ab commit 38201c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/checkcondition.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,8 +1273,8 @@ void CheckCondition::checkIncorrectLogicOperator()
12731273
const MathLib::bigint i1 = (isfloat) ? 0 : MathLib::toBigNumber(value1);
12741274
const MathLib::bigint i2 = (isfloat) ? 0 : MathLib::toBigNumber(value2);
12751275
const bool useUnsignedInt = (std::numeric_limits<MathLib::bigint>::max()==i1) || (std::numeric_limits<MathLib::bigint>::max()==i2);
1276-
const MathLib::biguint u1 = (useUnsignedInt) ? MathLib::toBigNumber(value1) : 0;
1277-
const MathLib::biguint u2 = (useUnsignedInt) ? MathLib::toBigNumber(value2) : 0;
1276+
const MathLib::biguint u1 = (useUnsignedInt) ? MathLib::toBigUNumber(value1) : 0;
1277+
const MathLib::biguint u2 = (useUnsignedInt) ? MathLib::toBigUNumber(value2) : 0;
12781278
// evaluate if expression is always true/false
12791279
bool alwaysTrue = true, alwaysFalse = true;
12801280
bool firstTrue = true, secondTrue = true;

0 commit comments

Comments
 (0)