Skip to content

Commit f7621cf

Browse files
committed
comgr: Use range for loop
Avoids warning about signed/unsigned comparison. Change-Id: Id22160e4939792ada4ac7d30501cb68cf0853c67
1 parent 8c4092b commit f7621cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

amd/comgr/test/multithread_test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ int main(int argc, char *argv[]) {
203203
for (int i = 0; i < 30; i++)
204204
compile_threads.push_back(std::thread (compile_min, i));
205205

206-
for (int i = 0; i < compile_threads.size(); i++)
207-
compile_threads[i].join();
208-
206+
for (auto &thread : compile_threads)
207+
thread.join();
209208
}

0 commit comments

Comments
 (0)