Skip to content

Commit 6c02e8d

Browse files
committed
Change long long to MathLib::bigint
1 parent 6f70d59 commit 6c02e8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/infer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)