File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ namespace {
128128 const ValueFlow::Value* minValue = getCompareValue (values, predicate, std::less<MathLib::bigint>{});
129129 if (minValue) {
130130 if (minValue->isImpossible () && minValue->bound == ValueFlow::Value::Bound::Upper) {
131- if (std::numeric_limits<long long >::max () == minValue->intvalue )
131+ if (std::numeric_limits<MathLib::bigint >::max () == minValue->intvalue )
132132 result.setMinValue (minValue->intvalue , minValue);
133133 else
134134 result.setMinValue (minValue->intvalue + 1 , minValue);
@@ -142,7 +142,7 @@ namespace {
142142 const ValueFlow::Value* maxValue = getCompareValue (values, predicate, std::greater<MathLib::bigint>{});
143143 if (maxValue) {
144144 if (maxValue->isImpossible () && maxValue->bound == ValueFlow::Value::Bound::Lower) {
145- if (std::numeric_limits<long long >::min () == maxValue->intvalue )
145+ if (std::numeric_limits<MathLib::bigint >::min () == maxValue->intvalue )
146146 result.setMaxValue (minValue->intvalue , maxValue);
147147 else
148148 result.setMaxValue (maxValue->intvalue - 1 , maxValue);
You can’t perform that action at this time.
0 commit comments