diff options
| author | Martin Hořeňovský | 2021-12-02 16:25:11 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-12-06 20:42:51 +0100 |
| commit | dcf9479c85f4fbd1aa6a296ff81fff235c48e0c1 (patch) | |
| tree | 2ab53893f7f66fd7c765c68e3c96598fe70c2799 /src/catch2/catch_totals.cpp | |
| parent | c49faa62dd0bdc4f71412c63ef161b7231ae2ab4 (diff) | |
| download | catch3-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.cpp | 2 |
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 { |