Skip to content

Commit fd8f65b

Browse files
committed
fix
1 parent 2c0f6fd commit fd8f65b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/symboldatabase.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8010,12 +8010,12 @@ void SymbolDatabase::setValueTypeInTokenList(bool reportDebugWarnings, Token *to
80108010
if (mSettings.platform.type != Platform::Type::Unspecified) {
80118011
if (type <= ValueType::Type::INT && mSettings.platform.isIntValue(unsignedSuffix ? (value >> 1) : value))
80128012
type = ValueType::Type::INT;
8013-
else if (type <= ValueType::Type::INT && !MathLib::isDec(tokStr) && mSettings.platform.isIntValue(value >> 2)) {
8013+
else if (type <= ValueType::Type::INT && !MathLib::isDec(tokStr) && mSettings.platform.isIntValue(value >> 1)) {
80148014
type = ValueType::Type::INT;
80158015
sign = ValueType::Sign::UNSIGNED;
80168016
} else if (type <= ValueType::Type::LONG && mSettings.platform.isLongValue(unsignedSuffix ? (value >> 1) : value))
80178017
type = ValueType::Type::LONG;
8018-
else if (type <= ValueType::Type::LONG && !MathLib::isDec(tokStr) && mSettings.platform.isLongValue(value >> 2)) {
8018+
else if (type <= ValueType::Type::LONG && !MathLib::isDec(tokStr) && mSettings.platform.isLongValue(value >> 1)) {
80198019
type = ValueType::Type::LONG;
80208020
sign = ValueType::Sign::UNSIGNED;
80218021
} else if (mSettings.platform.isLongLongValue(unsignedSuffix ? (value >> 1) : value))

0 commit comments

Comments
 (0)