Skip to content

Commit f76eda7

Browse files
committed
Fix compilation issue on OSX
1 parent 08be7f5 commit f76eda7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

table/cuckoo_table_reader_test.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void GetKeys(uint64_t num, std::vector<std::string>* keys) {
362362
IterKey k;
363363
k.SetInternalKey("", 0, kTypeValue);
364364
std::string internal_key_suffix = k.GetKey().ToString();
365-
ASSERT_EQ(8, internal_key_suffix.size());
365+
ASSERT_EQ(static_cast<size_t>(8), internal_key_suffix.size());
366366
for (uint64_t key_idx = 0; key_idx < num; ++key_idx) {
367367
std::string new_key(reinterpret_cast<char*>(&key_idx), sizeof(key_idx));
368368
new_key += internal_key_suffix;
@@ -418,7 +418,7 @@ void WriteFile(const std::vector<std::string>& keys,
418418
int cnt = 0;
419419
ASSERT_OK(reader.Get(r_options, Slice(key), &cnt, CheckValue, nullptr));
420420
if (cnt != 1) {
421-
fprintf(stderr, "%lu not found.\n",
421+
fprintf(stderr, "%" PRIx64 " not found.\n",
422422
*reinterpret_cast<const uint64_t*>(key.data()));
423423
ASSERT_EQ(1, cnt);
424424
}

0 commit comments

Comments
 (0)