aboutsummaryrefslogtreecommitdiff
path: root/src/timer.cpp
diff options
context:
space:
mode:
authorGravatar Dominic Hamon2021-05-30 20:37:54 +0100
committerGravatar GitHub2021-05-30 20:37:54 +0100
commit02340285c564a7e82105137192d46d554a6fce3a (patch)
tree696d1a6249841de62c3fed70310c2a347fc66732 /src/timer.cpp
parentAdd a workaround for a bug in GitHub Actions. (diff)
Added -Wshorten-64-to-32 and fixed all warnings.
Diffstat (limited to 'src/timer.cpp')
-rw-r--r--src/timer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timer.cpp b/src/timer.cpp
index fefc4cd08..c43e4ab0e 100644
--- a/src/timer.cpp
+++ b/src/timer.cpp
@@ -26,7 +26,7 @@
#include "inspircd.h"
-void Timer::SetInterval(unsigned int newinterval)
+void Timer::SetInterval(unsigned long newinterval)
{
ServerInstance->Timers.DelTimer(this);
secs = newinterval;
@@ -34,7 +34,7 @@ void Timer::SetInterval(unsigned int newinterval)
ServerInstance->Timers.AddTimer(this);
}
-Timer::Timer(unsigned int secs_from_now, bool repeating)
+Timer::Timer(unsigned long secs_from_now, bool repeating)
: trigger(ServerInstance->Time() + secs_from_now)
, secs(secs_from_now)
, repeat(repeating)