Added suggestion from Chen Yufei #1665

This commit is contained in:
Alexey Milovidov 2018-01-16 22:54:20 +03:00
parent 7a25b441f4
commit 8b7fe2d23e

View File

@ -202,7 +202,7 @@ ReturnType readFloatTextPreciseImpl(T & x, ReadBuffer & buf)
0, 0, nullptr, nullptr);
/// Fast path (avoid copying) if the buffer have at least MAX_LENGTH bytes.
static constexpr int MAX_LENGTH = 310;
static constexpr int MAX_LENGTH = 316;
if (buf.position() + MAX_LENGTH <= buf.buffer().end())
{