Avoid input is wrong

pull/5770/head
dataisland 2024-09-09 14:35:43 -05:00
parent 5eea2566bc
commit cdcd22f865
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ AI_FORCE_INLINE bool IsSpaceOrNewLine(char_t in) {
// --------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------
template <class char_t> template <class char_t>
AI_FORCE_INLINE bool SkipSpaces(const char_t *in, const char_t **out, const char_t *end) { AI_FORCE_INLINE bool SkipSpaces(const char_t *in, const char_t **out, const char_t *end) {
while (in != end && (*in == (char_t)' ' || *in == (char_t)'\t')) { while (in >= end && (*in == (char_t)' ' || *in == (char_t)'\t')) {
++in; ++in;
} }
*out = in; *out = in;