diff options
| author | 2021-05-30 20:37:54 +0100 | |
|---|---|---|
| committer | 2021-05-30 20:37:54 +0100 | |
| commit | 02340285c564a7e82105137192d46d554a6fce3a (patch) | |
| tree | 696d1a6249841de62c3fed70310c2a347fc66732 /src/timer.cpp | |
| parent | Add 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.cpp | 4 |
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) |
