提交 ddac4345 编写于 作者: A Alexey Milovidov

Addition to prev. revision #1665

上级 81187e48
......@@ -201,12 +201,15 @@ void readIntTextUpToNChars(T & x, ReadBuffer & buf)
negative = true;
}
for (size_t i = 0; !buf.eof() && i < N; ++i)
for (size_t i = 0; !buf.eof(); ++i)
{
if ((*buf.position() & 0xF0) == 0x30)
{
x *= 10;
x += *buf.position() & 0x0F;
if (likely(i < N))
{
x *= 10;
x += *buf.position() & 0x0F;
}
++buf.position();
}
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册