Skip to content

Commit f31a1b9

Browse files
committed
fix for compiler warning
1 parent d59f7c7 commit f31a1b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ThreadPool.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ struct ThreadPool {
2626

2727
for (size_t i = 0; i < numThreads; i++) {
2828
std::string myName = name;
29-
if (numThreads != 1) myName += std::string(" ") + std::to_string(i);
29+
if (numThreads != 1) {
30+
myName += std::string(" ");
31+
myName += std::to_string(i);
32+
}
3033

3134
pool.emplace_back();
3235
auto &t = pool.back();

0 commit comments

Comments
 (0)