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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/catch_totals.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-12-02 16:25:11 +0100
committerMartin Hořeňovský2021-12-06 20:42:51 +0100
commitdcf9479c85f4fbd1aa6a296ff81fff235c48e0c1 (patch)
tree2ab53893f7f66fd7c765c68e3c96598fe70c2799 /src/catch2/catch_totals.cpp
parentc49faa62dd0bdc4f71412c63ef161b7231ae2ab4 (diff)
downloadcatch3-dcf9479c85f4fbd1aa6a296ff81fff235c48e0c1.tar.gz
Counts internally use uint64_t instead of size_t
This ensures that even for 32 bit platforms, the assertion count should not plausibly overflow.
Diffstat (limited to 'src/catch2/catch_totals.cpp')
-rw-r--r--src/catch2/catch_totals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/catch_totals.cpp b/src/catch2/catch_totals.cpp
index a283c658..14a23869 100644
--- a/src/catch2/catch_totals.cpp
+++ b/src/catch2/catch_totals.cpp
@@ -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 {