summaryrefslogtreecommitdiff
path: root/src/utils/physfsrwops.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-27 19:30:48 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-27 19:30:48 +0300
commiteb9841897bbe93da6aa4ca2537a3e22b3a868d98 (patch)
treeb909446a61e26056b69a9272a9b48e314fda3957 /src/utils/physfsrwops.cpp
parent0b3166a9a06313266b868785fc69a9dee76b0a1d (diff)
downloadmv-eb9841897bbe93da6aa4ca2537a3e22b3a868d98.tar.gz
mv-eb9841897bbe93da6aa4ca2537a3e22b3a868d98.tar.bz2
mv-eb9841897bbe93da6aa4ca2537a3e22b3a868d98.tar.xz
mv-eb9841897bbe93da6aa4ca2537a3e22b3a868d98.zip
fix compilation warnings.
Diffstat (limited to 'src/utils/physfsrwops.cpp')
-rw-r--r--src/utils/physfsrwops.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/physfsrwops.cpp b/src/utils/physfsrwops.cpp
index d0560fb1e..8216e3794 100644
--- a/src/utils/physfsrwops.cpp
+++ b/src/utils/physfsrwops.cpp
@@ -115,7 +115,7 @@ 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);
- if (rc != maxnum)
+ if (rc != static_cast<PHYSFS_sint64>(maxnum))
{
if (!PHYSFS_eof(handle)) /* not EOF? Must be an error. */
SDL_SetError("PhysicsFS error: %s", PHYSFS_getLastError());
@@ -131,7 +131,7 @@ 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);
- if (rc != num)
+ if (rc != static_cast<PHYSFS_sint64>(num))
SDL_SetError("PhysicsFS error: %s", PHYSFS_getLastError());
return static_cast<int>(rc);