diff --git a/table/cuckoo_table_reader_test.cc b/table/cuckoo_table_reader_test.cc index 8315b1bd22806c9a0c30dcda068f348095c5cd8e..9f42ade8c0f29e0b027e59f805a6b56320e3ea23 100644 --- a/table/cuckoo_table_reader_test.cc +++ b/table/cuckoo_table_reader_test.cc @@ -362,7 +362,7 @@ void GetKeys(uint64_t num, std::vector* keys) { IterKey k; k.SetInternalKey("", 0, kTypeValue); std::string internal_key_suffix = k.GetKey().ToString(); - ASSERT_EQ(8, internal_key_suffix.size()); + ASSERT_EQ(static_cast(8), internal_key_suffix.size()); for (uint64_t key_idx = 0; key_idx < num; ++key_idx) { std::string new_key(reinterpret_cast(&key_idx), sizeof(key_idx)); new_key += internal_key_suffix; @@ -418,7 +418,7 @@ void WriteFile(const std::vector& keys, int cnt = 0; ASSERT_OK(reader.Get(r_options, Slice(key), &cnt, CheckValue, nullptr)); if (cnt != 1) { - fprintf(stderr, "%lu not found.\n", + fprintf(stderr, "%" PRIx64 " not found.\n", *reinterpret_cast(key.data())); ASSERT_EQ(1, cnt); }