Skip to content

Commit

Permalink
Remove unnecessary bit operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng Chang committed Mar 22, 2019
1 parent 1cb3840 commit cf1b5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/coding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ char* EncodeVarint64(char* dst, uint64_t v) {
static const int B = 128;
unsigned char* ptr = reinterpret_cast<unsigned char*>(dst);
while (v >= B) {
*(ptr++) = (v & (B-1)) | B;
*(ptr++) = v | B;
v >>= 7;
}
*(ptr++) = static_cast<unsigned char>(v);
Expand Down

0 comments on commit cf1b5f4

Please sign in to comment.