mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Add casts to fix build on 32bit
This commit is contained in:
parent
14e6bb322c
commit
a9d49da7fa
@ -97,13 +97,13 @@ public:
|
||||
virtual Sint64 Seek(Sint64 offset, int whence) override {
|
||||
switch (whence) {
|
||||
case RW_SEEK_SET:
|
||||
position_ = offset;
|
||||
position_ = static_cast<size_t>(offset);
|
||||
break;
|
||||
case RW_SEEK_CUR:
|
||||
position_ = position_ + offset;
|
||||
position_ = static_cast<size_t>(position_ + offset);
|
||||
break;
|
||||
case RW_SEEK_END:
|
||||
position_ = container_.size() + offset;
|
||||
position_ = static_cast<size_t>(container_.size() + offset);
|
||||
break;
|
||||
default:
|
||||
throw std::logic_error("Unexpected whence value for ContainerRWops::Seek");
|
||||
|
Loading…
x
Reference in New Issue
Block a user