From a1cb6bf949b5f82fdd2a9a2747b3053e9e3c5e64 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Mon, 13 Dec 2021 02:54:10 +0300 Subject: [PATCH] fix throw with exceptions disabled --- include/fmt/format-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index ec636247..04ded482 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -707,7 +707,7 @@ FMT_INLINE FMT_CONSTEXPR20 digits::result grisu_gen_digits( int precision_offset = exp + handler.exp10; if (precision_offset > 0 && handler.precision > max_value() - precision_offset) { - throw format_error("number is too big"); + FMT_THROW(format_error("number is too big")); } handler.precision += precision_offset; // Check if precision is satisfied just by leading zeros, e.g.