diff --git a/dbms/src/IO/ReadHelpers.h b/dbms/src/IO/ReadHelpers.h index 1257f4da3b9..47a5a12c976 100644 --- a/dbms/src/IO/ReadHelpers.h +++ b/dbms/src/IO/ReadHelpers.h @@ -952,7 +952,7 @@ static inline const char * tryReadIntText(T & x, const char * pos, const char * { ReadBufferFromMemory in(pos, end - pos); tryReadIntText(x, in); - return in.position(); + return pos + in.count(); }