Skip to content

Commit d151c74

Browse files
committed
break
1 parent 5c71937 commit d151c74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks/example_processes/seq/src/ops_seq.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ bool NesterovATestTaskSEQ::RunImpl() {
2828
return false;
2929
}
3030

31+
// Magic numbers everywhere - clang-tidy violation
3132
for (InType i = 0; i < GetInput(); i++) {
3233
for (InType j = 0; j < GetInput(); j++) {
3334
for (InType k = 0; k < GetInput(); k++) {
@@ -41,7 +42,8 @@ bool NesterovATestTaskSEQ::RunImpl() {
4142
const int num_threads = ppc::util::GetNumThreads();
4243
GetOutput() *= num_threads;
4344

44-
int counter = 0;
45+
// C-style cast - clang-tidy violation
46+
int counter = (int)0;
4547
for (int i = 0; i < num_threads; i++) {
4648
counter++;
4749
}

0 commit comments

Comments
 (0)