diff --git a/include/assimp/ParsingUtils.h b/include/assimp/ParsingUtils.h index ecd30a0e5..28609f347 100644 --- a/include/assimp/ParsingUtils.h +++ b/include/assimp/ParsingUtils.h @@ -103,7 +103,7 @@ AI_FORCE_INLINE bool IsSpaceOrNewLine(char_t in) { // --------------------------------------------------------------------------------- template 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; } *out = in;