CLuaInstCurl: Fix compiler warning

This commit is contained in:
M. Liebmann
2015-12-22 12:55:02 +01:00
parent 6f939800b6
commit 6b6dff36d6
3 changed files with 2 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ int CLuaInstCurl::CurlProgressFunc(void *p, curl_off_t dltotal, curl_off_t dlnow
curl_easy_getinfo(_pgd->curl, CURLINFO_RESPONSE_CODE, &responseCode);
uint32_t MUL = 0x7FFF;
uint32_t dlFragment = (dlnow * MUL) / dltotal;
uint32_t dlFragment = (uint32_t)((dlnow * MUL) / dltotal);
if (responseCode != 200) {
dlFragment = 0;
dlSpeed = 0;