Skip to content

Commit 1a130b1

Browse files
author
Chris Sullivan
committed
Fixed comparison with unsigned int that was causing many warnings
1 parent b63a6e5 commit 1a130b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/ThreadPoolBase.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public:
3030
n_tasks = (n_tasks >= m_workers.size()) ? n_tasks : m_workers.size();
3131
m_tasksRemaining = n_tasks;
3232
int chunk = (end - begin) / n_tasks;
33-
for (int i = 0; i < n_tasks; ++i) {
33+
for (auto i = 0u; i < n_tasks; ++i) {
3434
AddTask([=]{
3535
uint32_t threadstart = begin + i*chunk;
3636
uint32_t threadstop = (i == n_tasks - 1) ? end : threadstart + chunk;

0 commit comments

Comments
 (0)