Use != instead of > 0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user