Sweep out some Wsign-conversion warnings

This commit is contained in:
Martin Hořeňovský committed 2021-11-23 23:16:08 +01:00
1 parent 9952f29f01
commit 8cb8f0b08b
15 files changed
+43 -41

No files matched your search

+3 -1
View File
@@ -42,7 +42,9 @@ namespace Catch {
auto const startIdx = reverseEnd - secondLastColons;
auto const classNameSize = secondLastColons - lastColons - 1;
return methodName.substr( startIdx, classNameSize );
return methodName.substr(
static_cast<std::size_t>( startIdx ),
static_cast<std::size_t>( classNameSize ) );
}
} // namespace