Use != instead of > 0

This commit is contained in:
2025-06-23 14:15:25 -04:00
parent 451c07747e
commit 851d07bc43

View File

@@ -705,7 +705,7 @@ inline PRESERVE_NONE WeaselJsonStatus singleChar(Parser3 *self, char *buf,
inline PRESERVE_NONE WeaselJsonStatus t_eof(Parser3 *self, char *buf,
char *bufEnd) {
if (bufEnd - buf > 0) [[unlikely]] {
if (buf != bufEnd) [[unlikely]] {
return WeaselJson_REJECT;
}
return self->complete ? WeaselJson_OK : WeaselJson_AGAIN;