From 0efc8a1808892b28230a32786908bf302b1ca114 Mon Sep 17 00:00:00 2001 From: DanielaE Date: Thu, 26 Apr 2018 09:55:51 +0200 Subject: [PATCH] Fix compiler warning about narrowing Signed-off-by: Daniela Engert --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 8d5cb74d..9e9370bc 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -266,7 +266,7 @@ fp operator*(fp x, fp y); // alpha <= c_k.e + e <= alpha + 3. inline int compute_cached_power_index(int e, int alpha) { constexpr double one_over_log2_10 = 0.30102999566398114; // 1 / log2(10) - return std::ceil((alpha - e + 63) * one_over_log2_10); + return static_cast(std::ceil((alpha - e + 63) * one_over_log2_10)); } template