Commit 498bc465 authored by Igor Sugak's avatar Igor Sugak Committed by facebook-github-bot-4

folly: fix build with clang 3.6 -Werror

Summary: Fix a few `-Wsign-compare` violations

Reviewed By: @meyering

Differential Revision: D2527969

fb-gh-sync-id: 140acbd06eedf2e2a315e1927b331ff5efb20d0f
parent a2bab0fb
......@@ -201,7 +201,7 @@ void benchReadsWhenWriting(int n) {
});
}
for (uint64_t i = 0; i < n; ++i) {
for (int i = 0; i < n; ++i) {
auto val = ptr.load();
folly::doNotOptimizeAway(val.get());
}
......@@ -229,7 +229,7 @@ void benchWritesWhenReading(int n) {
}
for (uint64_t i = 0; i < n; ++i) {
for (int i = 0; i < n; ++i) {
ptr.store(folly::make_unique<int>(3));
}
......
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