From 534bff7d31f952b8eaa884fb2d46908a3de79f12 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 9 Sep 2017 07:38:52 -0700 Subject: [PATCH] Fix handling of max packed arguments --- fmt/format.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fmt/format.h b/fmt/format.h index fdbbe4ed..b2d2b023 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -1488,9 +1488,8 @@ class arg_store { Array data_; public: - static const uint64_t TYPES = - NUM_ARGS <= internal::MAX_PACKED_ARGS ? - internal::get_types() : -static_cast(NUM_ARGS); + static const uint64_t TYPES = IS_PACKED ? + internal::get_types() : -static_cast(NUM_ARGS); arg_store(const Args &... args) : data_(Array{{internal::make_arg(args)...}}) {}