1
0
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:
david gauchard 2019-04-16 20:29:50 +02:00 committed by Develo
parent 3b9db65ea3
commit 6156a54145

View File

@ -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();