1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

Now I can revert my partial reversion of b56059a

This commit is contained in:
Paul Licameli 2018-04-16 13:57:07 -04:00
parent 83421e8b17
commit f7515c90d8

View File

@ -45,6 +45,7 @@
#include <algorithm> #include <algorithm>
#include <wx/string.h> #include <wx/string.h>
#include <wx/arrstr.h> #include <wx/arrstr.h>
#include <type_traits>
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// TODO: I'd imagine this header may be replaced by other public headers. But, // TODO: I'd imagine this header may be replaced by other public headers. But,
@ -90,7 +91,7 @@ public:
size_t as_size_t() const { size_t as_size_t() const {
wxASSERT(value >= 0); wxASSERT(value >= 0);
wxASSERT(value <= std::numeric_limits<size_t>::max()); wxASSERT(static_cast<std::make_unsigned<type>::type>(value) <= std::numeric_limits<size_t>::max());
return value; return value;
} }