From 41af0f56b039fbb068707e1731ee199a1e450fee Mon Sep 17 00:00:00 2001 From: Damian Lezama Date: Thu, 30 Oct 2014 10:36:13 -0700 Subject: [PATCH] Fix build break because of unsigned/signed mismatch --- util/env_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/env_test.cc b/util/env_test.cc index 48e7d353d..f9c2336db 100644 --- a/util/env_test.cc +++ b/util/env_test.cc @@ -540,7 +540,7 @@ TEST(EnvPosixTest, AllocateTest) { stat(fname.c_str(), &f_stat); ASSERT_EQ((unsigned int)data.size(), f_stat.st_size); // verify that preallocated blocks were deallocated on file close - ASSERT_EQ((f_stat.st_size + kBlockSize - 1) / kBlockSize, f_stat.st_blocks); + ASSERT_EQ((f_stat.st_size + kBlockSize - 1) / kBlockSize, (unsigned int)f_stat.st_blocks); } #endif // ROCKSDB_FALLOCATE_PRESENT