summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-16 00:27:51 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-16 00:27:51 +0300
commitc3434fa53d1c83bc65b640951364f842fe6c79f4 (patch)
tree51aa552c585518d7b2e2d67eba7c9500065dae05 /src/localplayer.cpp
parent185a53c504a0d53e54a7425ea829b5c951661ea8 (diff)
downloadmv-c3434fa53d1c83bc65b640951364f842fe6c79f4.tar.gz
mv-c3434fa53d1c83bc65b640951364f842fe6c79f4.tar.bz2
mv-c3434fa53d1c83bc65b640951364f842fe6c79f4.tar.xz
mv-c3434fa53d1c83bc65b640951364f842fe6c79f4.zip
Fix some signed/unsigned chars issues.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index bc201359a..f3a45bdeb 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -2054,7 +2054,7 @@ std::string LocalPlayer::getQuickDropCounterString()
{
if (mQuickDropCounter > 9)
{
- return strprintf("(%c) drop counter %u", static_cast<char>(
+ return strprintf("(%c) drop counter %u", static_cast<signed char>(
'a' + mQuickDropCounter - 10), mQuickDropCounter);
}
else
@@ -2758,7 +2758,7 @@ void LocalPlayer::crazyMoveA()
int dx = 0;
int dy = 0;
- char param = mMoveProgram[mCrazyMoveState++];
+ signed char param = mMoveProgram[mCrazyMoveState++];
if (param == '?')
{
const char cmd[] = {'l', 'r', 'u', 'd'};
@@ -2813,7 +2813,7 @@ void LocalPlayer::crazyMoveA()
if (mCrazyMoveState < mMoveProgram.length())
{
- char param = mMoveProgram[mCrazyMoveState++];
+ signed char param = mMoveProgram[mCrazyMoveState++];
if (param == '?')
{
const char cmd[] = {'l', 'r', 'u', 'd'};
@@ -2952,7 +2952,7 @@ void LocalPlayer::crazyMoveA()
else if (mMoveProgram[mCrazyMoveState] == 'e')
{
mCrazyMoveState ++;
- const char emo = mMoveProgram[mCrazyMoveState];
+ const signed char emo = mMoveProgram[mCrazyMoveState];
if (emo == '?')
{
srand(tick_time);