From d67252eefc3b1865419f52e64489deba408cbbd8 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 1 Aug 2023 17:49:08 +0200 Subject: [PATCH] (Windows) Fixed an MSVC compiler warning --- es-core/src/HttpReq.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/HttpReq.cpp b/es-core/src/HttpReq.cpp index 5be455ea9..53d553f9a 100644 --- a/es-core/src/HttpReq.cpp +++ b/es-core/src/HttpReq.cpp @@ -272,9 +272,9 @@ int HttpReq::transferProgress( { // Note that it's not guaranteed that the server will actually provide the total size. if (dltotal > 0) - static_cast(clientp)->mTotalBytes = dltotal; + static_cast(clientp)->mTotalBytes = static_cast(dltotal); if (dlnow > 0) - static_cast(clientp)->mDownloadedBytes = dlnow; + static_cast(clientp)->mDownloadedBytes = static_cast(dlnow); return CURLE_OK; }