Skip to content

Commit

Permalink
Fix unity compile error (facebook#4257)
Browse files Browse the repository at this point in the history
Summary:
Fix the compile error in "make unity_test" caused by facebook#3983.
Pull Request resolved: facebook#4257

Differential Revision: D9271740

Pulled By: maysamyabandeh

fbshipit-source-id: 94e56d1675bf8bdc0e94439467eb4f40dd107517
  • Loading branch information
Maysam Yabandeh authored and rcane committed Sep 13, 2018
1 parent 9a9110a commit 85e0676
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions table/block.cc
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,9 @@ void IndexBlockIter::DecodeCurrentValue(uint32_t shared) {
if (shared == 0) {
uint64_t o, s;
const char* newp = GetVarint64Ptr(value_.data(), limit, &o);
assert(newp);
newp = GetVarint64Ptr(newp, limit, &s);
assert(newp);
decoded_value_ = BlockHandle(o, s);
value_ = Slice(value_.data(), newp - value_.data());
} else {
Expand Down

0 comments on commit 85e0676

Please sign in to comment.