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; }