summaryrefslogtreecommitdiff
path: root/src/utils/physfsrwops.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:53:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:53:58 +0300
commit12389c8441c748996962412201af9e21d66f9e55 (patch)
treeccfb01e0b4b3c2eda3d6cf55369bae61e98a4486 /src/utils/physfsrwops.cpp
parentbbc9697a153b30503d9d12c120505ec81adeacf1 (diff)
downloadmv-12389c8441c748996962412201af9e21d66f9e55.tar.gz
mv-12389c8441c748996962412201af9e21d66f9e55.tar.bz2
mv-12389c8441c748996962412201af9e21d66f9e55.tar.xz
mv-12389c8441c748996962412201af9e21d66f9e55.zip
Fix code style in utils.
Diffstat (limited to 'src/utils/physfsrwops.cpp')
-rw-r--r--src/utils/physfsrwops.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/utils/physfsrwops.cpp b/src/utils/physfsrwops.cpp
index 0faab8f20..94172cd71 100644
--- a/src/utils/physfsrwops.cpp
+++ b/src/utils/physfsrwops.cpp
@@ -121,7 +121,9 @@ static PHYSFSSIZE physfsrwops_read(SDL_RWops *const rw, void *ptr,
{
PHYSFS_file *const handle = static_cast<PHYSFS_file *const>(
rw->hidden.unknown.data1);
- const PHYSFS_sint64 rc = PHYSFS_read(handle, ptr, size, maxnum);
+ const PHYSFS_sint64 rc = PHYSFS_read(handle, ptr,
+ static_cast<unsigned int>(size),
+ static_cast<unsigned int>(maxnum));
if (rc != static_cast<PHYSFS_sint64>(maxnum))
{
if (!PHYSFS_eof(handle)) /* not EOF? Must be an error. */
@@ -137,7 +139,9 @@ static PHYSFSSIZE physfsrwops_write(SDL_RWops *const rw, const void *ptr,
{
PHYSFS_file *const handle = static_cast<PHYSFS_file *const>(
rw->hidden.unknown.data1);
- const PHYSFS_sint64 rc = PHYSFS_write(handle, ptr, size, num);
+ const PHYSFS_sint64 rc = PHYSFS_write(handle, ptr,
+ static_cast<unsigned int>(size),
+ static_cast<unsigned int>(num));
if (rc != static_cast<PHYSFS_sint64>(num))
SDL_SetError("PhysicsFS error: %s", PHYSFS_getLastError());