From ff00f3eeaddcef80871929d6f65deccbb7dbf4ec Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Mon, 19 May 2025 16:21:05 -0400 Subject: [PATCH] Fix bogus assert --- src/parser3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser3.h b/src/parser3.h index 368efa5..37f9a64 100644 --- a/src/parser3.h +++ b/src/parser3.h @@ -644,7 +644,7 @@ inline Status t_hex3(Parser3 *self) { // Write codepoint in utf-8 if there's room in the user provided buffer. If // there's not room, flush, write into a temp buffer, and flush again. char tmp[4]; - assert(self->utf8Codepoint < 0x10000); + assert(self->utf8Codepoint >= 0x10000); if (self->utf8Codepoint > 0x10FFFF) { return S_REJECT; }