Skip to content

Commit 300c5d3

Browse files
Ole Schmidthorenmar
authored andcommitted
Fix Wconversion warning in catch_reporter_helpers.cpp
1 parent 11a96e1 commit 300c5d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/catch2/reporters/catch_reporter_helpers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ namespace Catch {
199199
}
200200

201201
// minimum whitespace to pad tag counts, possibly overwritten below
202-
size_t maxTagCountLen = 2;
202+
int maxTagCountLen = 2;
203203

204204
// determine necessary padding for tag count column
205205
if ( ! tags.empty() ) {
@@ -214,7 +214,7 @@ namespace Catch {
214214
// more padding necessary for 3+ digits
215215
if (maxTagCount >= 100) {
216216
auto numDigits = 1 + std::floor( std::log10( maxTagCount ) );
217-
maxTagCountLen = static_cast<size_t>( numDigits );
217+
maxTagCountLen = static_cast<int>( numDigits );
218218
}
219219
}
220220

0 commit comments

Comments
 (0)