diff --git a/src/gui/lua/lua_curl.cpp b/src/gui/lua/lua_curl.cpp index 69d25ea17..02ddad9c0 100644 --- a/src/gui/lua/lua_curl.cpp +++ b/src/gui/lua/lua_curl.cpp @@ -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; diff --git a/src/gui/lua/lua_threads.cpp b/src/gui/lua/lua_threads.cpp index 3bc13da75..8885f7ea2 100644 --- a/src/gui/lua/lua_threads.cpp +++ b/src/gui/lua/lua_threads.cpp @@ -21,8 +21,6 @@ * THE SOFTWARE. ******************************************************************************/ -#include - #include #include #include diff --git a/src/gui/lua/lua_threads.h b/src/gui/lua/lua_threads.h index 3d1304982..324e43ccd 100644 --- a/src/gui/lua/lua_threads.h +++ b/src/gui/lua/lua_threads.h @@ -30,6 +30,7 @@ extern "C" #include #include } +#include /* wrap strerror_r(). */ #ifndef strerror_r