Skip to content

Commit 1aaf437

Browse files
committed
checkuninitvar.cpp: fixed Cppcheck Premium warning
1 parent eba0de6 commit 1aaf437

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkuninitvar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ void CheckUninitVarImpl::valueFlowUninit()
16971697
static bool isVariableUsage(const Settings &settings, const Token *vartok, MathLib::bigint *value)
16981698
{
16991699
(void)value;
1700-
return CheckUninitVarImpl::isVariableUsage(vartok, settings.library, true, CheckUninitVarImpl::Alloc::ARRAY);
1700+
return !!CheckUninitVarImpl::isVariableUsage(vartok, settings.library, true, CheckUninitVarImpl::Alloc::ARRAY);
17011701
}
17021702

17031703
// a Clang-built executable will crash when using the anonymous MyFileInfo later on - so put it in a unique namespace for now

0 commit comments

Comments
 (0)