We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db8ca52 + 8237738 commit 7c16e39Copy full SHA for 7c16e39
table/plain_table_key_coding.cc
@@ -30,7 +30,7 @@ const unsigned char kSizeInlineLimit = 0x3F;
30
size_t EncodeSize(EntryType type, uint32_t key_size, char* out_buffer) {
31
out_buffer[0] = type << 6;
32
33
- if (key_size < 0x3F) {
+ if (key_size < static_cast<uint32_t>(kSizeInlineLimit)) {
34
// size inlined
35
out_buffer[0] |= static_cast<char>(key_size);
36
return 1;
0 commit comments