Skip to content

Commit

Permalink
Avoid narrowing; it's not allowed in C++11.
Browse files Browse the repository at this point in the history
  • Loading branch information
mordante committed Jun 8, 2014
1 parent 2cf2025 commit 970c36b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/playmp_controller.cpp
Expand Up @@ -204,7 +204,7 @@ possible_end_play_signal playmp_controller::play_human_turn(){
while( undo_stack_->can_undo() )
undo_stack_->undo();

end_turn_struct ets = {gui_->playing_side()};
end_turn_struct ets = {static_cast<unsigned>(gui_->playing_side())};
return possible_end_play_signal(ets);
//throw end_turn_exception(gui_->playing_side());
}
Expand Down Expand Up @@ -274,7 +274,7 @@ possible_end_play_signal playmp_controller::play_idle_loop()

if (res == turn_info::PROCESS_RESTART_TURN || res == turn_info::PROCESS_RESTART_TURN_TEMPORARY_LOCAL)
{
end_turn_struct ets = {gui_->playing_side()};
end_turn_struct ets = {static_cast<unsigned>(gui_->playing_side())};
return possible_end_play_signal(ets);
//throw end_turn_exception(gui_->playing_side());
}
Expand Down

0 comments on commit 970c36b

Please sign in to comment.