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/internal | |
| 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/internal')
| -rw-r--r-- | src/catch2/internal/catch_string_manip.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_string_manip.hpp b/src/catch2/internal/catch_string_manip.hpp index bdc7c266..8ef47e39 100644 --- a/src/catch2/internal/catch_string_manip.hpp +++ b/src/catch2/internal/catch_string_manip.hpp @@ -44,14 +44,14 @@ namespace Catch { * **Important:** The provided string must outlive the instance */ struct pluralise { - pluralise(std::size_t count, StringRef label): + pluralise(std::uint64_t count, StringRef label): m_count(count), m_label(label) {} friend std::ostream& operator << ( std::ostream& os, pluralise const& pluraliser ); - std::size_t m_count; + std::uint64_t m_count; StringRef m_label; }; } |