Skip to content

Commit 6ffd90b

Browse files
committed
Clang-Tidy: Clean-Up include cpp for src/basic_op.cpp
1 parent 26db5e8 commit 6ffd90b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/snippets/basic_op_OrOpInvSCplx.incpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// e1 Or e2=StrictScalar() : e1 everywhere except if e1==0
2-
Data_* right = static_cast<Data_*> (r);
2+
auto right = dynamic_cast<Data_*> (r);
33

4-
ULong nEl = N_Elements();
4+
const auto nEl = static_cast<OMPInt>(N_Elements());
55
assert(nEl);
66
Ty s = (*right)[0];
77
if (nEl == 1) {
@@ -13,7 +13,7 @@ if ((GDL_NTHREADS = parallelize(nEl)) == 1) {
1313
for (OMPInt i = 0; i < nEl; ++i) if ((*this)[i]==zero) (*this)[i] = s;
1414
} else {
1515
TRACEOMP(__FILE__, __LINE__)
16-
#pragma omp parallel for num_threads(GDL_NTHREADS)
16+
#pragma omp parallel for num_threads(GDL_NTHREADS) default(none) shared(nEl, s)
1717
for (OMPInt i = 0; i < nEl; ++i) if ((*this)[i]==zero) (*this)[i] = s;
1818
}
1919
return this;

0 commit comments

Comments
 (0)