From 75736e7c44d0fbea5511a46b7112710871bb8a25 Mon Sep 17 00:00:00 2001 From: Qv2ray-dev <59914293+Qv2ray-dev@users.noreply.github.com> Date: Tue, 3 Mar 2020 13:18:01 +0800 Subject: [PATCH] fix: fixed cross-platform build --- makespec/BUILDVERSION | 2 +- src/core/handler/ConnectionHandler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/makespec/BUILDVERSION b/makespec/BUILDVERSION index 75df1256..38e1efbb 100644 --- a/makespec/BUILDVERSION +++ b/makespec/BUILDVERSION @@ -1 +1 @@ -4386 +4387 diff --git a/src/core/handler/ConnectionHandler.cpp b/src/core/handler/ConnectionHandler.cpp index 88ec3d63..3f60be91 100644 --- a/src/core/handler/ConnectionHandler.cpp +++ b/src/core/handler/ConnectionHandler.cpp @@ -244,7 +244,7 @@ namespace Qv2ray::core::handlers LOG(MODULE_CORE_HANDLER, "Cannot find id: " + id.toString()); } - return max(connections[id].latency, 0L); + return max(connections[id].latency, (int64_t) 0); } const optional QvConnectionHandler::RenameConnection(const ConnectionId &id, const QString &newName) {