diff --git a/include/assimp/ParsingUtils.h b/include/assimp/ParsingUtils.h index e0ee2d77c..ecd30a0e5 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 == (char_t)' ' || *in == (char_t)'\t') && in != end) { + while (in != end && (*in == (char_t)' ' || *in == (char_t)'\t')) { ++in; } *out = in;