From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/dirs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dirs.cpp') diff --git a/src/dirs.cpp b/src/dirs.cpp index daf332b54..5f99ebd0e 100644 --- a/src/dirs.cpp +++ b/src/dirs.cpp @@ -108,8 +108,8 @@ void extractAssets() for (int f = 0; f < 100; f ++) { std::string part = strprintf("manaplus-data.zip%u%u", - static_cast(f / 10), - static_cast(f % 10)); + CAST_U32(f / 10), + CAST_U32(f % 10)); logger->log("testing asset: " + part); SDL_RWops *const rw = SDL_RWFromFile(part.c_str(), "r"); if (rw) @@ -236,9 +236,9 @@ void Dirs::mountDataDir() #ifdef WIN32 const int loc1 = path.find_last_of('/'); const int loc2 = path.find_last_of('\\'); - const int loc = static_cast(std::max(loc1, loc2)); + const int loc = CAST_S32(std::max(loc1, loc2)); #else - const int loc = static_cast(path.find_last_of('/')); + const int loc = CAST_S32(path.find_last_of('/')); #endif if (loc > 0) { -- cgit v1.2.3-60-g2f50