diff --git a/src/misc/Time.cpp b/src/misc/Time.cpp index 0e6cf1c..4c431d9 100644 --- a/src/misc/Time.cpp +++ b/src/misc/Time.cpp @@ -1,5 +1,6 @@ #include "misc/Time.h" #include +#include namespace td { namespace utils { @@ -44,7 +45,7 @@ void Timer::reset() { bool CooldownTimer::update(std::uint64_t delta) { if (m_Cooldown > 0) { - m_Cooldown = std::max(0L, static_cast(m_Cooldown - delta)); + m_Cooldown = std::max(static_cast(0), static_cast(m_Cooldown - delta)); } return m_Cooldown == 0; }