Commit 489a7f09 authored by Steve O'Brien's avatar Steve O'Brien Committed by Sara Golemon

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
parent 22e8caf3
......@@ -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]);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment