From c3434fa53d1c83bc65b640951364f842fe6c79f4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Oct 2012 00:27:51 +0300 Subject: Fix some signed/unsigned chars issues. --- src/localplayer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/localplayer.cpp') 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( + return strprintf("(%c) drop counter %u", static_cast( '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); -- cgit v1.2.3-70-g09d2