From 20e4ef8b4c7ce67e880f28084af02fb9d1ce99c2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 5 Jul 2021 08:51:43 -0700 Subject: [PATCH] Pass significand_size by value --- 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 93c8698b..ebcd1cc2 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1634,7 +1634,7 @@ inline auto get_significand_size(const dragonbox::decimal_fp& fp) -> int { template inline auto write_significand(OutputIt out, const char* significand, - int& significand_size) -> OutputIt { + int significand_size) -> OutputIt { return copy_str(significand, significand + significand_size, out); } template