Add missing unlikely annotation

This commit is contained in:
2026-07-15 12:31:17 -04:00
parent 70bb33eeaf
commit 93203b14f5
+1 -1
View File
@@ -650,7 +650,7 @@ inline PRESERVE_NONE ContinuationStatus n_string2(Parser3 *self, char *buf,
self->writeBuf[0] = (0b00000111 & codepoint) | 0b11110000;
self->writeBuf += 4;
}
} else if (0xdc00 <= codepoint && codepoint <= 0xdfff) {
} else if (0xdc00 <= codepoint && codepoint <= 0xdfff) [[unlikely]] {
return WeaselJson_REJECT;
} else {
if (!(self->flags & WeaselJsonRaw)) {