Fix wrong casting 43/284243/1
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 14 Nov 2022 07:09:20 +0000 (16:09 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 14 Nov 2022 07:09:20 +0000 (16:09 +0900)
Change-Id: I88682ec17fea45f2e9c5d108d1a0c3af34a71370

dali/internal/imaging/common/file-download.cpp

index 4e203a9..8ff7029 100644 (file)
@@ -196,7 +196,7 @@ bool DownloadFile(CURL*                  curlHandle,
   // 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;