mirror of https://github.com/facebook/rocksdb.git
Merge pull request #226 from bbiao/master
fix various 'comparison of integers of different signs' compiling errors...
This commit is contained in:
commit
1a1957ba4d
|
@ -383,10 +383,10 @@ TEST(CuckooBuilderTest, FailWhenSameKeyInserted) {
|
|||
ASSERT_OK(builder.status());
|
||||
|
||||
builder.Add(Slice(GetInternalKey(user_key, false)), Slice("value1"));
|
||||
ASSERT_EQ(builder.NumEntries(), 1);
|
||||
ASSERT_EQ(builder.NumEntries(), 1u);
|
||||
ASSERT_OK(builder.status());
|
||||
builder.Add(Slice(GetInternalKey(user_key, true)), Slice("value2"));
|
||||
ASSERT_EQ(builder.NumEntries(), 2);
|
||||
ASSERT_EQ(builder.NumEntries(), 2u);
|
||||
ASSERT_OK(builder.status());
|
||||
|
||||
ASSERT_TRUE(builder.Finish().IsNotSupported());
|
||||
|
|
|
@ -163,7 +163,7 @@ class CuckooReaderTest {
|
|||
++cnt;
|
||||
it->Next();
|
||||
}
|
||||
ASSERT_EQ(cnt, num_items);
|
||||
ASSERT_EQ(static_cast<uint32_t>(cnt), num_items);
|
||||
|
||||
it->SeekToLast();
|
||||
cnt = num_items - 1;
|
||||
|
@ -186,7 +186,7 @@ class CuckooReaderTest {
|
|||
++cnt;
|
||||
it->Next();
|
||||
}
|
||||
ASSERT_EQ(cnt, num_items);
|
||||
ASSERT_EQ(static_cast<uint32_t>(cnt), num_items);
|
||||
delete it;
|
||||
|
||||
Arena arena;
|
||||
|
@ -404,7 +404,7 @@ void BM_CuckooRead(uint64_t num, uint32_t key_length,
|
|||
|
||||
uint64_t time_now = env->NowMicros();
|
||||
reader.NewIterator(ReadOptions(), nullptr);
|
||||
fprintf(stderr, "Time taken for preparing iterator for %lu items: %lu ms.\n",
|
||||
fprintf(stderr, "Time taken for preparing iterator for %" PRIu64 " items: %" PRIu64 " ms.\n",
|
||||
num, (env->NowMicros() - time_now)/1000);
|
||||
time_now = env->NowMicros();
|
||||
for (uint64_t i = 0; i < num_reads; ++i) {
|
||||
|
|
Loading…
Reference in New Issue