From 46b62de07ea06bde3432701302ec26c4832bf263 Mon Sep 17 00:00:00 2001 From: hiker Date: Tue, 19 Jun 2018 09:19:32 +1000 Subject: [PATCH] Fixed compiler warning. --- src/karts/controller/skidding_ai.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/karts/controller/skidding_ai.cpp diff --git a/src/karts/controller/skidding_ai.cpp b/src/karts/controller/skidding_ai.cpp old mode 100644 new mode 100755 index 7c7e33262..cfdf53f36 --- a/src/karts/controller/skidding_ai.cpp +++ b/src/karts/controller/skidding_ai.cpp @@ -2025,7 +2025,7 @@ void SkiddingAI::computeNearestKarts() // The cast truncate the decimals, so it won't go over n-1 // as the highest possible ideal_target is n int target_index = (int) (ideal_target - 0.5f); - assert(target_index >= 0 && target_index <= n-1); + assert(target_index >= 0 && target_index <= (int)n-1); target_overall_distance = overall_distance[target_index]; } // Now convert 'maximum overall distance' to distance to player.