Skip to content

Commit 1d21203

Browse files
Update vf_settokenvalue.cpp
1 parent 29745e9 commit 1d21203

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/vf_settokenvalue.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ namespace ValueFlow
665665
const ValueType *dst = tok->valueType();
666666
if (dst) {
667667
const size_t sz = dst->getSizeOf(settings, ValueType::Accuracy::ExactOrZero, ValueType::SizeOf::Pointer);
668-
MathLib::bigint newvalue = ValueFlow::truncateIntValue(v.intvalue + 1, sz, dst->sign);
668+
MathLib::bigint newvalue = ValueFlow::truncateIntValue(v.intvalue + 1, sz, dst, settings.platform);
669669
if (v.bound != ValueFlow::Value::Bound::Point) {
670670
if (newvalue < v.intvalue) {
671671
v.invertBound();
@@ -695,7 +695,7 @@ namespace ValueFlow
695695
const ValueType *dst = tok->valueType();
696696
if (dst) {
697697
const size_t sz = dst->getSizeOf(settings, ValueType::Accuracy::ExactOrZero, ValueType::SizeOf::Pointer);
698-
MathLib::bigint newvalue = ValueFlow::truncateIntValue(v.intvalue - 1, sz, dst->sign);
698+
MathLib::bigint newvalue = ValueFlow::truncateIntValue(v.intvalue - 1, sz, dst, settings.platform);
699699
if (v.bound != ValueFlow::Value::Bound::Point) {
700700
if (newvalue > v.intvalue) {
701701
v.invertBound();

0 commit comments

Comments
 (0)