summaryrefslogtreecommitdiff
path: root/src/resources/soundeffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/soundeffect.cpp')
-rw-r--r--src/resources/soundeffect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/soundeffect.cpp b/src/resources/soundeffect.cpp
index f817f9c44..4491e993a 100644
--- a/src/resources/soundeffect.cpp
+++ b/src/resources/soundeffect.cpp
@@ -60,7 +60,7 @@ bool SoundEffect::play(const int loops, const int volume,
int SoundEffect::calcMemoryLocal() const
{
- return sizeof(SoundEffect) +
- sizeof(SDL_AudioSpec) +
+ return static_cast<int>(sizeof(SoundEffect) +
+ sizeof(SDL_AudioSpec)) +
Resource::calcMemoryLocal();
}