From a9d49da7fa3625516d5f0c260242f3a5f00021a9 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Wed, 14 Oct 2015 01:05:41 +0300 Subject: [PATCH] Add casts to fix build on 32bit --- SDL2pp/ContainerRWops.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SDL2pp/ContainerRWops.hh b/SDL2pp/ContainerRWops.hh index 43802b5..ced03e4 100644 --- a/SDL2pp/ContainerRWops.hh +++ b/SDL2pp/ContainerRWops.hh @@ -97,13 +97,13 @@ public: virtual Sint64 Seek(Sint64 offset, int whence) override { switch (whence) { case RW_SEEK_SET: - position_ = offset; + position_ = static_cast(offset); break; case RW_SEEK_CUR: - position_ = position_ + offset; + position_ = static_cast(position_ + offset); break; case RW_SEEK_END: - position_ = container_.size() + offset; + position_ = static_cast(container_.size() + offset); break; default: throw std::logic_error("Unexpected whence value for ContainerRWops::Seek");