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:
5 files changed
+14
-13
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user