Update datatest.cpp

This commit is contained in:
Jeffrey Walton 2021-03-19 18:56:21 -04:00
parent 3b76ccc5a5
commit 851d355f5b
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -73,8 +73,8 @@ bool Readline(std::istream& stream, std::string& line)
}
// Grow by 1.5x as needed
if (line.capacity() == 0)
line.reserve(line.size()*3/2);
//if (line.capacity() == 0)
// line.reserve(line.size()*3/2);
line.push_back(static_cast<char>(ch));
}