From 489a7f0939566660be715e9be1343f5bafcbcf59 Mon Sep 17 00:00:00 2001 From: Steve O'Brien Date: Fri, 17 Jul 2015 12:41:02 -0700 Subject: [PATCH] folly HHWheelTimer: fix loop variable Summary: In nested loop, loop condition is incorrect. Fixed var (should be `ii` not `i`) Reviewed By: @pgriess Differential Revision: D2255702 --- folly/io/async/HHWheelTimer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/io/async/HHWheelTimer.cpp b/folly/io/async/HHWheelTimer.cpp index 2bc9eae7..366b5eeb 100644 --- a/folly/io/async/HHWheelTimer.cpp +++ b/folly/io/async/HHWheelTimer.cpp @@ -212,7 +212,7 @@ size_t HHWheelTimer::cancelAll() { // http://llvm.org/bugs/show_bug.cgi?id=22106 #if FOLLY_USE_LIBCPP for (size_t i = 0; i < WHEEL_BUCKETS; ++i) { - for (size_t ii = 0; i < WHEEL_SIZE; ++ii) { + for (size_t ii = 0; ii < WHEEL_SIZE; ++ii) { std::swap(buckets_[i][ii], buckets[i][ii]); } } -- 2.34.1