mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
polledTimeout: ensures timeType is unsigned (#5991)
This commit is contained in:
parent
3b9db65ea3
commit
6156a54145
@ -142,6 +142,7 @@ class timeoutTemplate
|
||||
{
|
||||
public:
|
||||
using timeType = typename TimePolicyT::timeType;
|
||||
static_assert(std::is_unsigned<timeType>::value == true, "timeType must be unsigned");
|
||||
|
||||
static constexpr timeType alwaysExpired = 0;
|
||||
static constexpr timeType neverExpires = std::numeric_limits<timeType>::max();
|
||||
|
Loading…
x
Reference in New Issue
Block a user