Skip to content

Commit 7c16e39

Browse files
committed
Merge pull request XRPLF#276 from wankai/master
replace hard-coded number with named variable
2 parents db8ca52 + 8237738 commit 7c16e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

table/plain_table_key_coding.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const unsigned char kSizeInlineLimit = 0x3F;
3030
size_t EncodeSize(EntryType type, uint32_t key_size, char* out_buffer) {
3131
out_buffer[0] = type << 6;
3232

33-
if (key_size < 0x3F) {
33+
if (key_size < static_cast<uint32_t>(kSizeInlineLimit)) {
3434
// size inlined
3535
out_buffer[0] |= static_cast<char>(key_size);
3636
return 1;

0 commit comments

Comments
 (0)