Skip to content

Commit

Permalink
Make msvc happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Apr 3, 2024
1 parent bfaec5f commit 9ccf930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/catch2/internal/catch_textflow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ namespace Catch {
public:
class const_iterator;
using iterator = const_iterator;
static constexpr char sentinel = static_cast<char>(0xff);
// note: must be u-suffixed or this will cause a "truncation of constant value" warning on MSVC
static constexpr char sentinel = static_cast<char>(0xffu);

AnsiSkippingString(std::string const& text);

Expand Down

0 comments on commit 9ccf930

Please sign in to comment.