From 498bc465f04dd6535c5ace0669feee47292e497d Mon Sep 17 00:00:00 2001 From: Igor Sugak Date: Mon, 12 Oct 2015 17:18:50 -0700 Subject: [PATCH] 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 --- folly/test/ReadMostlySharedPtrBenchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/test/ReadMostlySharedPtrBenchmark.cpp b/folly/test/ReadMostlySharedPtrBenchmark.cpp index e135b6c2..37abfc05 100644 --- a/folly/test/ReadMostlySharedPtrBenchmark.cpp +++ b/folly/test/ReadMostlySharedPtrBenchmark.cpp @@ -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(3)); } -- 2.34.1