Skip to content

Commit

Permalink
Merge pull request XRPLF#240 from ShaoYuZhang/master
Browse files Browse the repository at this point in the history
Fix compilation issue on OSX
  • Loading branch information
siying committed Aug 22, 2014
2 parents 08be7f5 + f76eda7 commit bb530c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions table/cuckoo_table_reader_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ void GetKeys(uint64_t num, std::vector<std::string>* 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<size_t>(8), internal_key_suffix.size());
for (uint64_t key_idx = 0; key_idx < num; ++key_idx) {
std::string new_key(reinterpret_cast<char*>(&key_idx), sizeof(key_idx));
new_key += internal_key_suffix;
Expand Down Expand Up @@ -418,7 +418,7 @@ void WriteFile(const std::vector<std::string>& 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<const uint64_t*>(key.data()));
ASSERT_EQ(1, cnt);
}
Expand Down

0 comments on commit bb530c0

Please sign in to comment.