Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authorOle Schmidt2026-05-05 08:48:32 +0200
committerMartin Hořeňovský2026-05-06 09:58:01 +0200
commit300c5d3eed3f36a25e6d81b896d823cc9a41a6ea (patch)
treecdf0113d547696cba3553a2b886fb4490e4193b6 /src/catch2
parent11a96e186af8b2779d93e550217e9c95d3f89371 (diff)
downloadcatch3-300c5d3eed3f36a25e6d81b896d823cc9a41a6ea.tar.gz
Fix Wconversion warning in catch_reporter_helpers.cpp
Diffstat (limited to 'src/catch2')
-rw-r--r--src/catch2/reporters/catch_reporter_helpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/reporters/catch_reporter_helpers.cpp b/src/catch2/reporters/catch_reporter_helpers.cpp
index 6fa68a3c..0044efb5 100644
--- a/src/catch2/reporters/catch_reporter_helpers.cpp
+++ b/src/catch2/reporters/catch_reporter_helpers.cpp
@@ -199,7 +199,7 @@ namespace Catch {
}
// minimum whitespace to pad tag counts, possibly overwritten below
- size_t maxTagCountLen = 2;
+ int maxTagCountLen = 2;
// determine necessary padding for tag count column
if ( ! tags.empty() ) {
@@ -214,7 +214,7 @@ namespace Catch {
// more padding necessary for 3+ digits
if (maxTagCount >= 100) {
auto numDigits = 1 + std::floor( std::log10( maxTagCount ) );
- maxTagCountLen = static_cast<size_t>( numDigits );
+ maxTagCountLen = static_cast<int>( numDigits );
}
}