From 73a16b827f71e9d2b18f77418a56d6610d04926d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 8 Dec 2019 17:07:20 -0800 Subject: [PATCH] Fix handling of int128_t in format-impl-test (#1461) --- test/format-impl-test.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/format-impl-test.cc b/test/format-impl-test.cc index bf377699..9a8465c5 100644 --- a/test/format-impl-test.cc +++ b/test/format-impl-test.cc @@ -328,14 +328,14 @@ template struct value_extractor { throw std::runtime_error(fmt::format("invalid type {}", typeid(U).name())); } -#ifdef __apple_build_version__ +#if FMT_USE_INT128 // Apple Clang does not define typeid for __int128_t and __uint128_t. - FMT_NORETURN T operator()(__int128_t) { - throw std::runtime_error(fmt::format("invalid type {}", "__int128_t")); + FMT_NORETURN T operator()(fmt::internal::int128_t) { + throw std::runtime_error("invalid type __int128_t"); } - FMT_NORETURN T operator()(__uint128_t) { - throw std::runtime_error(fmt::format("invalid type {}", "__uint128_t")); + FMT_NORETURN T operator()(fmt::internal::uint128_t) { + throw std::runtime_error("invalid type __uint128_t"); } #endif };