Skip to content

Commit

Permalink
Merge pull request XRPLF#276 from wankai/master
Browse files Browse the repository at this point in the history
replace hard-coded number with named variable
  • Loading branch information
igorcanadi committed Sep 8, 2014
2 parents db8ca52 + 8237738 commit 7c16e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table/plain_table_key_coding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const unsigned char kSizeInlineLimit = 0x3F;
size_t EncodeSize(EntryType type, uint32_t key_size, char* out_buffer) {
out_buffer[0] = type << 6;

if (key_size < 0x3F) {
if (key_size < static_cast<uint32_t>(kSizeInlineLimit)) {
// size inlined
out_buffer[0] |= static_cast<char>(key_size);
return 1;
Expand Down

0 comments on commit 7c16e39

Please sign in to comment.