From 12389c8441c748996962412201af9e21d66f9e55 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Apr 2014 19:53:58 +0300 Subject: Fix code style in utils. --- src/utils/physfsrwops.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/utils/physfsrwops.cpp') 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( rw->hidden.unknown.data1); - const PHYSFS_sint64 rc = PHYSFS_read(handle, ptr, size, maxnum); + const PHYSFS_sint64 rc = PHYSFS_read(handle, ptr, + static_cast(size), + static_cast(maxnum)); if (rc != static_cast(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( rw->hidden.unknown.data1); - const PHYSFS_sint64 rc = PHYSFS_write(handle, ptr, size, num); + const PHYSFS_sint64 rc = PHYSFS_write(handle, ptr, + static_cast(size), + static_cast(num)); if (rc != static_cast(num)) SDL_SetError("PhysicsFS error: %s", PHYSFS_getLastError()); -- cgit v1.2.3-70-g09d2