diff --git a/dbms/src/IO/WriteIntText.h b/dbms/src/IO/WriteIntText.h index 187635a5ff9..e08fdbcbb7a 100644 --- a/dbms/src/IO/WriteIntText.h +++ b/dbms/src/IO/WriteIntText.h @@ -188,9 +188,9 @@ namespace detail #if 1 inline void writeSIntText(__int128 x, WriteBuffer & buf) { - static const __int128 max_int128 = __int128(0x8000000000000000ll) << 64; + static const __int128 min_int128 = __int128(0x8000000000000000ll) << 64; - if (unlikely(x == max_int128)) + if (unlikely(x == min_int128)) { buf.write("-170141183460469231731687303715884105728", 40); return;