fix: add missing header for android

This commit is contained in:
2021-11-09 20:07:06 +01:00
parent f0de0f0c69
commit 116defc142

View File

@@ -1,5 +1,6 @@
#include "misc/Time.h"
#include <chrono>
#include <algorithm>
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<std::int64_t>(m_Cooldown - delta));
m_Cooldown = std::max(static_cast<std::int64_t>(0), static_cast<std::int64_t>(m_Cooldown - delta));
}
return m_Cooldown == 0;
}