Skip to content

Commit

Permalink
Update readFloatText.h
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyang-li committed Oct 27, 2023
1 parent 3009e53 commit 308b294
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/IO/readFloatText.h
Expand Up @@ -151,7 +151,6 @@ ReturnType readFloatTextPreciseImpl(T & x, ReadBuffer & buf)
static constexpr int MAX_LENGTH = 316;

ReadBufferFromMemory * buf_from_memory = dynamic_cast<ReadBufferFromMemory *>(&buf);

/// Fast path (avoid copying) if the buffer have at least MAX_LENGTH bytes or buf is ReadBufferFromMemory
if (likely(!buf.eof() && (buf_from_memory || buf.position() + MAX_LENGTH <= buf.buffer().end())))
{
Expand Down

0 comments on commit 308b294

Please sign in to comment.