diff --git a/es-app/src/scrapers/Scraper.cpp b/es-app/src/scrapers/Scraper.cpp index dc9ca4ae9..40b8766c7 100644 --- a/es-app/src/scrapers/Scraper.cpp +++ b/es-app/src/scrapers/Scraper.cpp @@ -269,7 +269,7 @@ MDResolveHandle::MDResolveHandle(const ScraperSearchResult& result, FIMEMORY* memoryStream = FreeImage_OpenMemory( reinterpret_cast(&mResult.thumbnailImageData.at(0)), - mResult.thumbnailImageData.size()); + static_cast(mResult.thumbnailImageData.size())); FREE_IMAGE_FORMAT imageFormat = FreeImage_GetFileTypeFromMemory(memoryStream, 0); FreeImage_CloseMemory(memoryStream); @@ -429,7 +429,8 @@ void MediaDownloadHandle::update() std::string imageData = mReq->getContent(); FIMEMORY* memoryStream = FreeImage_OpenMemory( - reinterpret_cast(&imageData.at(0)), imageData.size()); + reinterpret_cast(&imageData.at(0)), + static_cast(imageData.size())); imageFormat = FreeImage_GetFileTypeFromMemory(memoryStream, 0); FreeImage_CloseMemory(memoryStream); diff --git a/es-core/src/utils/TimeUtil.cpp b/es-core/src/utils/TimeUtil.cpp index b9af238ff..0830615c5 100644 --- a/es-core/src/utils/TimeUtil.cpp +++ b/es-core/src/utils/TimeUtil.cpp @@ -177,7 +177,7 @@ namespace Utils const char* f = format.c_str(); tm timeStruct; #if defined(_WIN64) - localtime_s(&timeStruct, &_time); + localtime_s(&timeStruct, &time); #else localtime_r(&time, &timeStruct); #endif