summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index a537ebc75..c4bbf0a3c 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -477,8 +477,8 @@ void Image::SDLTerminateAlphaCache()
int Image::calcMemoryLocal() const
{
// +++ this calculation can be wrong for SDL2
- int sz = sizeof(Image) +
- sizeof(std::map<float, SDL_Surface*>) +
+ int sz = static_cast<int>(sizeof(Image) +
+ sizeof(std::map<float, SDL_Surface*>)) +
Resource::calcMemoryLocal();
if (mSDLSurface)
{