Skip to content

Commit 6156a54

Browse files
d-a-vdevyte
authored andcommitted
polledTimeout: ensures timeType is unsigned (#5991)
1 parent 3b9db65 commit 6156a54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp8266/PolledTimeout.h

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ class timeoutTemplate
142142
{
143143
public:
144144
using timeType = typename TimePolicyT::timeType;
145+
static_assert(std::is_unsigned<timeType>::value == true, "timeType must be unsigned");
145146

146147
static constexpr timeType alwaysExpired = 0;
147148
static constexpr timeType neverExpires = std::numeric_limits<timeType>::max();

0 commit comments

Comments
 (0)