diff --git a/include/fmt/format.h b/include/fmt/format.h index 369e8869..c4c9fea8 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1727,8 +1727,7 @@ class precision_checker: public function { template FMT_CONSTEXPR typename std::enable_if< !is_integer::value, unsigned long long>::type operator()(T) { - handler_.on_error("precision is not integer"); - return 0; + return handler_.on_error("precision is not integer"), 0; } private: