Fixing gcc compiler warnings.

This commit is contained in:
lotodore
2012-09-20 22:14:17 +02:00
parent c752b17c9f
commit 895a174a08
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1671,7 +1671,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
isBigBlind = true;
} else { // no blind -> log
if (netActionDone.playeraction()) {
assert(netActionDone.totalplayerbet() >= tmpPlayer->getMySet());
assert((int)netActionDone.totalplayerbet() >= tmpPlayer->getMySet());
client->GetGui().logPlayerActionMsg(
tmpPlayer->getMyName(),
netActionDone.playeraction(),
@@ -1736,7 +1736,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0);
// Set round.
if (curGame->getCurrentHand()->getCurrentRound() != netPlayersTurn.gamestate()) {
if (curGame->getCurrentHand()->getCurrentRound() != static_cast<GameState>(netPlayersTurn.gamestate())) {
ResetPlayerActions(*curGame);
curGame->getCurrentHand()->setCurrentRound(static_cast<GameState>(netPlayersTurn.gamestate()));
client->GetClientLog()->setCurrentRound(static_cast<GameState>(netPlayersTurn.gamestate()));