summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-13 12:20:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-13 12:20:19 +0300
commitf0b7627b7d88c1d5bb484961377114b210c8dd53 (patch)
treea978c3b8eca88759fa71b5fc34112f4bea9bbcec /src/utils
parentd9be27bba8941260500066cdd43ebb016356bc67 (diff)
downloadmanaverse-f0b7627b7d88c1d5bb484961377114b210c8dd53.tar.gz
manaverse-f0b7627b7d88c1d5bb484961377114b210c8dd53.tar.bz2
manaverse-f0b7627b7d88c1d5bb484961377114b210c8dd53.tar.xz
manaverse-f0b7627b7d88c1d5bb484961377114b210c8dd53.zip
Fix code style.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/base64.cpp10
-rw-r--r--src/utils/physfsrwops.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp
index feed37066..bb69539e1 100644
--- a/src/utils/base64.cpp
+++ b/src/utils/base64.cpp
@@ -130,15 +130,15 @@ unsigned char *php3_base64_decode(const unsigned char *restrict const string,
switch (i % 4)
{
case 0:
- result[j] = static_cast<unsigned char>(ch << 2);
+ result[j] = static_cast<unsigned char>(ch << 2U);
break;
case 1:
- result[j++] |= static_cast<unsigned char>(ch >> 4);
- result[j] = static_cast<unsigned char>((ch & 0x0f) << 4);
+ result[j++] |= static_cast<unsigned char>(ch >> 4U);
+ result[j] = static_cast<unsigned char>((ch & 0x0f) << 4U);
break;
case 2:
- result[j++] |= static_cast<unsigned char>(ch >>2);
- result[j] = static_cast<unsigned char>((ch & 0x03) << 6);
+ result[j++] |= static_cast<unsigned char>(ch >>2U);
+ result[j] = static_cast<unsigned char>((ch & 0x03) << 6U);
break;
case 3:
result[j++] |= static_cast<unsigned char>(ch);
diff --git a/src/utils/physfsrwops.cpp b/src/utils/physfsrwops.cpp
index 94172cd71..b4afa5e9e 100644
--- a/src/utils/physfsrwops.cpp
+++ b/src/utils/physfsrwops.cpp
@@ -202,7 +202,7 @@ static SDL_RWops *create_rwops(PHYSFS_file *const handle)
retval->hidden.unknown.data1 = handle;
} /* if */
#ifdef DUMP_LEAKED_RESOURCES
- openedRWops ++;
+ openedRWops ++;
#endif
} /* else */