Skip to content

Commit a01029a

Browse files
Merge branch 'master' into https-serve
2 parents 36c75e2 + 6156a54 commit a01029a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp8266/PolledTimeout.h

Lines changed: 1 addition & 0 deletions
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)