Skip to content

Commit c406693

Browse files
committed
fixed readability-math-missing-parentheses clang-tidy warnings
1 parent 36a0d90 commit c406693

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
@@ -2244,12 +2244,12 @@ static int getVersion(const QString& nameWithVersion) {
22442244
}
22452245
else if (c == '.') {
22462246
++dot;
2247-
ret = ret * 1000 + v;
2247+
ret = (ret * 1000) + v;
22482248
v = 0;
22492249
} else if (c >= '0' && c <= '9')
2250-
v = v * 10 + (c.toLatin1() - '0');
2250+
v = (v * 10) + (c.toLatin1() - '0');
22512251
}
2252-
ret = ret * 1000 + v;
2252+
ret = (ret * 1000) + v;
22532253
while (dot < 2) {
22542254
++dot;
22552255
ret *= 1000;

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5857,7 +5857,7 @@ static void valueFlowSubFunction(const TokenList& tokenlist,
58575857
v.errorPath.emplace_back(argtok,
58585858
"Calling function '" + calledFunction->name() + "', " + nr + " argument '" +
58595859
argtok->expressionString() + "' value is " + v.infoString());
5860-
v.path = 256 * v.path + id % 256;
5860+
v.path = (256 * v.path) + (id % 256);
58615861
// Change scope of lifetime values
58625862
if (v.isLifetimeValue())
58635863
v.lifetimeScope = ValueFlow::Value::LifetimeScope::SubFunction;

0 commit comments

Comments
 (0)