From d87f0db8b313f7c4d3a2a7e12bbda3373ae87106 Mon Sep 17 00:00:00 2001 From: bill Date: Tue, 23 Aug 2022 05:21:28 +0800 Subject: [PATCH] bug fix with int128 --- aquery_config.py | 2 +- server/table.h | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/aquery_config.py b/aquery_config.py index 26a9f51..a686eb9 100644 --- a/aquery_config.py +++ b/aquery_config.py @@ -34,4 +34,4 @@ if os_platform == 'win': print("adding path") else: import readline - \ No newline at end of file + diff --git a/server/table.h b/server/table.h index e480945..79853a7 100644 --- a/server/table.h +++ b/server/table.h @@ -160,12 +160,10 @@ std::ostream& operator<<(std::ostream& os, const VT& v) v.out(); return os; } - #ifdef __SIZEOF_INT128__ std::ostream& operator<<(std::ostream& os, __int128 & v); std::ostream& operator<<(std::ostream& os, __uint128_t & v); #endif - template struct decayed_impl { typedef ColRef type; }; @@ -333,7 +331,7 @@ struct TableInfo { header_string.resize(header_string.size() - l_sep); const auto& prt_loop = [&fp, &view, &printf_string, *this](const auto& f) { -#ifdef __SIZEOF_INT128__ +#ifdef __SIZEOF_INT128__ constexpr auto num_hge = count_type<__int128_t, __uint128_t>((tuple_type*)(0)); char cbuf[num_hge * 41]; setgbuf(cbuf); @@ -592,4 +590,4 @@ print(const VT& v, const char* delimiter = " ", const char* endline = "\n") { print_impl(v, delimiter, endline); } -#endif \ No newline at end of file +#endif