Skip to content

Commit 60b5768

Browse files
committed
fixed readability-math-missing-parentheses clang-tidy warnings
1 parent 626e23e commit 60b5768

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

cli/signalhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#ifdef __USE_DYNAMIC_STACK_SIZE
5959
static constexpr size_t MYSTACKSIZE = (16*1024)+32768; // wild guess about a reasonable buffer
6060
#else
61-
static constexpr size_t MYSTACKSIZE = 16*1024+SIGSTKSZ; // wild guess about a reasonable buffer
61+
static constexpr size_t MYSTACKSIZE = (16*1024)+SIGSTKSZ; // wild guess about a reasonable buffer
6262
#endif
6363
static char mytstack[MYSTACKSIZE]= {0}; // alternative stack for signal handler
6464
static bool bStackBelowHeap=false; // lame attempt to locate heap vs. stack address space. See CppCheckExecutor::check_wrapper()

gui/mainwindow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2217,12 +2217,12 @@ static int getVersion(const QString& nameWithVersion) {
22172217
}
22182218
else if (c == '.') {
22192219
++dot;
2220-
ret = ret * 1000 + v;
2220+
ret = (ret * 1000) + v;
22212221
v = 0;
22222222
} else if (c >= '0' && c <= '9')
2223-
v = v * 10 + (c.toLatin1() - '0');
2223+
v = (v * 10) + (c.toLatin1() - '0');
22242224
}
2225-
ret = ret * 1000 + v;
2225+
ret = (ret * 1000) + v;
22262226
while (dot < 2) {
22272227
++dot;
22282228
ret *= 1000;

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5808,7 +5808,7 @@ static void valueFlowSubFunction(const TokenList& tokenlist,
58085808
v.errorPath.emplace_back(argtok,
58095809
"Calling function '" + calledFunction->name() + "', " + nr + " argument '" +
58105810
argtok->expressionString() + "' value is " + v.infoString());
5811-
v.path = 256 * v.path + id % 256;
5811+
v.path = (256 * v.path) + (id % 256);
58125812
// Change scope of lifetime values
58135813
if (v.isLifetimeValue())
58145814
v.lifetimeScope = ValueFlow::Value::LifetimeScope::SubFunction;

0 commit comments

Comments
 (0)