Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mquickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1571,14 +1571,14 @@ static BOOL is_utf8_left_surrogate(const uint8_t *p)
{
return p[0] == 0xed &&
(p[1] >= 0xa0 && p[1] <= 0xaf) &&
(p[2] >= 0x80 && p[1] <= 0xbf);
(p[2] >= 0x80 && p[2] <= 0xbf);
}

static BOOL is_utf8_right_surrogate(const uint8_t *p)
{
return p[0] == 0xed &&
(p[1] >= 0xb0 && p[1] <= 0xbf) &&
(p[2] >= 0x80 && p[1] <= 0xbf);
(p[2] >= 0x80 && p[2] <= 0xbf);
}

typedef struct {
Expand Down