Update IOStreamBuffer.h

This commit is contained in:
Kim Kulling 2023-02-04 18:36:36 +01:00 committed by GitHub
parent db72c6ee38
commit e9c95d484e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ AI_FORCE_INLINE bool IOStreamBuffer<T>::getNextLine(std::vector<T> &buffer) {
}
buffer[i] = '\n';
while (m_cachePos < m_cacheSize && (m_cache[m_cachePos] == '\r' || m_cache[m_cachePos] == '\n')) {
++m_cachePos;
++m_cachePos;
}
return true;