Skip to content

Is this intended? #711

Closed
Closed
@yuwenyong

Description

@yuwenyong

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions