summaryrefslogtreecommitdiff
path: root/src/resources/memorymanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/memorymanager.cpp')
-rw-r--r--src/resources/memorymanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/memorymanager.cpp b/src/resources/memorymanager.cpp
index 546c19c45..758504326 100644
--- a/src/resources/memorymanager.cpp
+++ b/src/resources/memorymanager.cpp
@@ -31,12 +31,12 @@ MemoryManager::MemoryManager()
}
-int MemoryManager::getSurfaceSize(SDL_Surface *const surface)
+int MemoryManager::getSurfaceSize(const SDL_Surface *const surface)
{
if (!surface)
return 0;
- return sizeof(SDL_Surface) +
- sizeof(SDL_PixelFormat) +
+ return CAST_S32(sizeof(SDL_Surface)) +
+ CAST_S32(sizeof(SDL_PixelFormat)) +
// aproximation for sizeof(SDL_BlitMap)
28 +
// pixels