compiles! Still working on tokens
This commit is contained in:
@@ -109,7 +109,7 @@ namespace spider {
|
||||
void TextReader::commit() {
|
||||
if (bufferIndex > 0) {
|
||||
// Erase everything before the current buffer index
|
||||
buffer.erase(buffer.begin(), buffer.begin() + bufferIndex);
|
||||
buffer.erase(buffer.begin(), buffer.begin() + std::ptrdiff_t(bufferIndex));
|
||||
bufferIndex = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user