From d1d591ca34b97ed6235eca6313ca2bde5d11f3ab Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 11 Jun 2016 15:58:17 +0800 Subject: [PATCH] Fix compiler warning --- src/modes/soccer_world.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modes/soccer_world.cpp b/src/modes/soccer_world.cpp index d7e53f78b..d3c00fb41 100644 --- a/src/modes/soccer_world.cpp +++ b/src/modes/soccer_world.cpp @@ -656,9 +656,9 @@ void SoccerWorld::enterRaceOverState() red_own_goal++; } - int red_goal = ((m_red_scorers.size() - blue_own_goal) >= 0 ? + int red_goal = ((int(m_red_scorers.size()) - blue_own_goal) >= 0 ? m_red_scorers.size() - blue_own_goal : 0); - int blue_goal = ((m_blue_scorers.size() - red_own_goal) >= 0 ? + int blue_goal = ((int(m_blue_scorers.size()) - red_own_goal) >= 0 ? m_blue_scorers.size() - red_own_goal : 0); Log::verbose("Soccer AI profiling", "Red goal: %d, Red own goal: %d,"