aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/compat.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2015-05-13 00:26:02 +0200
committerGravatar Attila Molnar2015-05-13 00:26:02 +0200
commit0982b2a58259ec1653e2af93ec612ec98378a087 (patch)
tree9454d0f4b7b8f02a2a3efe08b462f302d3d1a8aa /src/modules/m_spanningtree/compat.cpp
parentm_spanningtree Clean up comments (diff)
downloadinspircd++-0982b2a58259ec1653e2af93ec612ec98378a087.tar.gz
inspircd++-0982b2a58259ec1653e2af93ec612ec98378a087.tar.bz2
inspircd++-0982b2a58259ec1653e2af93ec612ec98378a087.zip
m_spanningtree Use uint64_t for the burst start time to avoid overflows
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
-rw-r--r--src/modules/m_spanningtree/compat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp
index c2ee940fc..ab5ee269e 100644
--- a/src/modules/m_spanningtree/compat.cpp
+++ b/src/modules/m_spanningtree/compat.cpp
@@ -473,7 +473,7 @@ bool TreeSocket::PreProcessOldProtocolMessage(User*& who, std::string& cmd, std:
// If the source of this SERVER message is not bursting, then new servers it introduces are bursting
TreeServer* server = TreeServer::Get(who);
if (!server->IsBursting())
- params.insert(params.begin()+2, "burst=" + ConvToStr(ServerInstance->Time()*1000));
+ params.insert(params.begin()+2, "burst=" + ConvToStr(((uint64_t)ServerInstance->Time())*1000));
}
else if (cmd == "BURST")
{