From 823773837ba275d23af107a3e1499915e625e823 Mon Sep 17 00:00:00 2001 From: wankai Date: Mon, 8 Sep 2014 11:10:17 +0800 Subject: [PATCH] replace hard-coded number with named variable --- table/plain_table_key_coding.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table/plain_table_key_coding.cc b/table/plain_table_key_coding.cc index dbe53c0c6..c553752e1 100644 --- a/table/plain_table_key_coding.cc +++ b/table/plain_table_key_coding.cc @@ -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(kSizeInlineLimit)) { // size inlined out_buffer[0] |= static_cast(key_size); return 1;