Fix Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2019-06-15 13:23:21 +02:00
parent 46cad95238
commit 8359d85b12
1 changed files with 1 additions and 1 deletions

View File

@ -1317,7 +1317,7 @@ void SymbolDatabase::setArrayDimensionsUsingValueFlow()
break;
};
if (bits > 0 && bits < 64) {
if (bits > 0 && bits <= 62) {
if (dimension.tok->valueType()->sign == ValueType::Sign::UNSIGNED)
dimension.num = 1LL << bits;
else