summary refs log tree commit diff
path: root/src/ui/MxcAnimatedImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ui/MxcAnimatedImage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/MxcAnimatedImage.cpp b/src/ui/MxcAnimatedImage.cpp
index 8ecea7d9..7f7210e3 100644
--- a/src/ui/MxcAnimatedImage.cpp
+++ b/src/ui/MxcAnimatedImage.cpp
@@ -82,7 +82,7 @@ MxcAnimatedImage::startDownload()
                 std::string temp(ba.constData(), ba.size());
                 temp =
                   mtx::crypto::to_string(mtx::crypto::decrypt_file(temp, encryptionInfo.value()));
-                buffer.setData(temp.data(), temp.size());
+                buffer.setData(temp.data(), static_cast<int>(temp.size()));
             } else {
                 buffer.setData(device.readAll());
             }