diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 401dc4cdb..79d8c34e4 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -328,9 +328,9 @@ unsigned int CppCheck::check(const std::string &path) const std::string analyzerInfo = mSettings.buildDir.empty() ? std::string() : AnalyzerInformation::getAnalyzerInfoFile(mSettings.buildDir, path, ""); const std::string clangcmd = analyzerInfo + ".clang-cmd"; const std::string clangStderr = analyzerInfo + ".clang-stderr"; - std::string exe = mSettings.clangExecutable; + std::string exe = mSettings.clangExecutable; #ifdef _WIN32 - // append .exe if it is not a path + // append .exe if it is not a path if (Path::fromNativeSeparators(mSettings.clangExecutable).find('/') == std::string::npos) { exe += ".exe"; } diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 047d945b5..6058414a8 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -790,8 +790,7 @@ static void setTokenValue(Token* tok, const ValueFlow::Value &value, const Setti // Value can't be inverted continue; v.intvalue = -v.intvalue; - } - else + } else v.floatValue = -v.floatValue; v.invertBound(); setTokenValue(parent, v, settings);