X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Ftest%2FConcurrentSkipListTest.cpp;h=671a8341e1d78cb980423fab6fb5334405006d74;hp=35651eb5a424a53743a46e6f42b792be83276465;hb=7ebe7c2a249de44209e8bcc453e1a70bafd4ed19;hpb=bfa61031d36f41aaa907d40371c28ac0e84c8e0d diff --git a/folly/test/ConcurrentSkipListTest.cpp b/folly/test/ConcurrentSkipListTest.cpp index 35651eb5..671a8341 100644 --- a/folly/test/ConcurrentSkipListTest.cpp +++ b/folly/test/ConcurrentSkipListTest.cpp @@ -115,7 +115,9 @@ static void concurrentSkip(const vector *values, int64_t sum = 0; SkipListAccessor::Skipper skipper(skipList); FOR_EACH(it, *values) { - if (skipper.to(*it)) sum += *it; + if (skipper.to(*it)) { + sum += *it; + } } VLOG(20) << "sum = " << sum; } @@ -266,8 +268,12 @@ TEST(ConcurrentSkipList, TestStringType) { struct UniquePtrComp { bool operator ()( const std::unique_ptr &x, const std::unique_ptr &y) const { - if (!x) return false; - if (!y) return true; + if (!x) { + return false; + } + if (!y) { + return true; + } return *x < *y; } };