summaryrefslogtreecommitdiff
path: root/src/resources/subimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/subimage.cpp')
-rw-r--r--src/resources/subimage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/subimage.cpp b/src/resources/subimage.cpp
index 0652195dd..b6ec02479 100644
--- a/src/resources/subimage.cpp
+++ b/src/resources/subimage.cpp
@@ -225,8 +225,8 @@ void SubImage::decRef()
int SubImage::calcMemoryLocal() const
{
- int sz = sizeof(SubImage) +
- sizeof(std::map<float, SDL_Surface*>) +
+ int sz = static_cast<int>(sizeof(SubImage) +
+ sizeof(std::map<float, SDL_Surface*>)) +
Resource::calcMemoryLocal();
return sz;
}