From 7f733ce14fdd6c430f442e7ce5ba29880deb14ee Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Fri, 14 Jan 2022 23:11:46 +0100 Subject: Fix narrowing in thousand separator code --- include/cxxformat/formatters.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cxxformat/formatters.hpp b/include/cxxformat/formatters.hpp index 119f7ea..1bee0f4 100644 --- a/include/cxxformat/formatters.hpp +++ b/include/cxxformat/formatters.hpp @@ -78,7 +78,7 @@ namespace format { out('0', leadingZeros); - auto subjectPos = 0; + std::size_t subjectPos = 0; if (firstSubject > 0 && subjectDigits > firstSubject) { out(subject.substr(0, firstSubject)); -- cgit v1.2.3-54-g00ecf