Fix json_string_decode.

GitOrigin-RevId: 2ec938143c6fc51aef3a66bbb51572fe97e039b1
This commit is contained in:
levlam 2018-07-19 16:54:44 +03:00
parent c87fd6e7ee
commit 8ab079be89

View File

@ -232,7 +232,7 @@ Result<MutableSlice> json_string_decode(Parser &parser) {
} else if (num < 0x800) {
*cur_dest++ = static_cast<char>(0xc0 + (num >> 6));
*cur_dest++ = static_cast<char>(0x80 + (num & 63));
} else if (num < 0xffff) {
} else if (num <= 0xffff) {
*cur_dest++ = static_cast<char>(0xe0 + (num >> 12));
*cur_dest++ = static_cast<char>(0x80 + ((num >> 6) & 63));
*cur_dest++ = static_cast<char>(0x80 + (num & 63));