Fix -Wsign-compare
[folly.git] / folly / experimental / wangle / concurrent / IOThreadPoolExecutor.cpp
index db8ffdca8402ac37da9e5d07eb30723f7f589dc8..dfca621658e937e3eb36e9e50cf0e8f526df3426 100644 (file)
@@ -132,7 +132,7 @@ void IOThreadPoolExecutor::threadRun(ThreadPtr thread) {
 
 // threadListLock_ is writelocked
 void IOThreadPoolExecutor::stopThreads(size_t n) {
-  for (int i = 0; i < n; i++) {
+  for (size_t i = 0; i < n; i++) {
     const auto ioThread = std::static_pointer_cast<IOThread>(
         threadList_.get()[i]);
     ioThread->shouldRun = false;