From 02340285c564a7e82105137192d46d554a6fce3a Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Sun, 30 May 2021 20:37:54 +0100 Subject: Added -Wshorten-64-to-32 and fixed all warnings. --- src/timer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/timer.cpp') 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) -- cgit v1.3.1-10-gc9f91