From 9d75b706d5c98d83faf6a5eba893936002e6fb58 Mon Sep 17 00:00:00 2001 From: Benau Date: Thu, 7 Nov 2019 14:40:10 +0800 Subject: [PATCH] Remove warnings --- data/gui/screens/race_result.stkgui | 6 +++--- src/karts/controller/skidding_ai.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/gui/screens/race_result.stkgui b/data/gui/screens/race_result.stkgui index cf1646992..bf5ae908b 100644 --- a/data/gui/screens/race_result.stkgui +++ b/data/gui/screens/race_result.stkgui @@ -16,9 +16,9 @@ Setting text=" " is important, otherwise the height of the widget is incorrect. --> - - - + + + diff --git a/src/karts/controller/skidding_ai.cpp b/src/karts/controller/skidding_ai.cpp index 5badcded2..480a6be86 100644 --- a/src/karts/controller/skidding_ai.cpp +++ b/src/karts/controller/skidding_ai.cpp @@ -1953,7 +1953,7 @@ void SkiddingAI::computeNearestKarts() target_index = target_index / (num_ai - 1); } - assert(target_index >= 0 && target_index <= n-1); + assert(target_index >= 0 && (unsigned)target_index <= n-1); target_overall_distance = overall_distance[target_index]; } // Now convert 'maximum overall distance' to distance to player.