Change-Id: I88682ec17fea45f2e9c5d108d1a0c3af34a71370
// get the content length, -1 == size is not known
curl_easy_getinfo(curlHandle, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &size);
// get the content length, -1 == size is not known
curl_easy_getinfo(curlHandle, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &size);
- if(static_cast<size_t>(size) >= maximumAllowedSizeBytes)
+ if(size >= static_cast<double>(maximumAllowedSizeBytes))
{
DALI_LOG_ERROR("File content length %f > max allowed %zu \"%s\" \n", size, maximumAllowedSizeBytes, url.c_str());
return false;
{
DALI_LOG_ERROR("File content length %f > max allowed %zu \"%s\" \n", size, maximumAllowedSizeBytes, url.c_str());
return false;