From 40123b380571fc62e1d2cf046a97da5ad55a186d Mon Sep 17 00:00:00 2001 From: Reid Horuff Date: Wed, 11 May 2016 14:22:43 -0700 Subject: [PATCH] signed vs unsigned comparison fix --- utilities/transactions/transaction_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/transactions/transaction_test.cc b/utilities/transactions/transaction_test.cc index e10af66bd..899259431 100644 --- a/utilities/transactions/transaction_test.cc +++ b/utilities/transactions/transaction_test.cc @@ -560,7 +560,7 @@ TEST_F(TransactionTest, PersistentTwoPhaseTransactionTest) { TEST_F(TransactionTest, TwoPhaseMultiThreadTest) { // mix transaction writes and regular writes - const int NUM_TXN_THREADS = 50; + const uint32_t NUM_TXN_THREADS = 50; std::atomic txn_thread_num(0); std::function txn_write_thread = [&]() { @@ -626,7 +626,7 @@ TEST_F(TransactionTest, TwoPhaseMultiThreadTest) { ReadOptions read_options; std::string value; Status s; - for (int t = 0; t < NUM_TXN_THREADS; t++) { + for (uint32_t t = 0; t < NUM_TXN_THREADS; t++) { TransactionName name("xid_" + std::string(1, 'A' + t)); for (int i = 0; i < 10; i++) { std::string key(name + "_" + std::string(1, 'A' + i));