summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/packetcounters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/packetcounters.cpp b/src/net/packetcounters.cpp
index f29bb890c..7d28ab3be 100644
--- a/src/net/packetcounters.cpp
+++ b/src/net/packetcounters.cpp
@@ -108,7 +108,7 @@ void PacketCounters::updateCounter(int &restrict currentSec,
int &restrict calc,
int &restrict counter)
{
- const time_t idx = cur_time % 60;
+ const int idx = CAST_S32(cur_time % 60);
if (currentSec != idx)
{
currentSec = idx;