Avoid input is wrong
parent
5eea2566bc
commit
cdcd22f865
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue