X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Ftest%2FThreadLocalBenchmark.cpp;h=824b73ea108c39144a79f8e4dbcfe132c7cd806b;hb=654cce1e5f5f4cadf3d6a05fe964d30d6120ffbc;hp=88691e13eb6fc739dedcc1ba7486df5adaba636c;hpb=a49866e66310a9940c7e262807602a170bbc93f5;p=folly.git diff --git a/folly/test/ThreadLocalBenchmark.cpp b/folly/test/ThreadLocalBenchmark.cpp index 88691e13..824b73ea 100644 --- a/folly/test/ThreadLocalBenchmark.cpp +++ b/folly/test/ThreadLocalBenchmark.cpp @@ -66,7 +66,7 @@ DEFINE_int32(numThreads, 8, "Number simultaneous threads for benchmarks."); for (int i = 0; i < FLAGS_numThreads; ++i) { \ threads.push_back(std::thread([&]() { \ var.reset(new int(0)); \ - for (int i = 0; i < itersPerThread; ++i) { \ + for (int j = 0; j < itersPerThread; ++j) { \ ++(*var.get()); \ } \ })); \