Closed
Description
I'm reading source code recently.In function "utf8ToCodepoint" contains code below(almost line 202 in json_writer.cpp):
if (calculated >= 0xD800 && calculated >= 0xDFFF) return REPLACEMENT_CHARACTER;
It seems first condition is redundant. Should second condition be less equal? Is this intended?