Counts internally use uint64_t instead of size_t

This ensures that even for 32 bit platforms, the assertion count
should not plausibly overflow.
This commit is contained in:
Martin Hořeňovský committed 2021-12-06 20:42:51 +01:00
1 parent c49faa62dd
commit dcf9479c85
5 files changed
+14 -13

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ namespace Catch {
return *this;
}
std::size_t Counts::total() const {
std::uint64_t Counts::total() const {
return passed + failed + failedButOk;
}
bool Counts::allPassed() const {