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

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;