From: Steinar H. Gunderson Date: Sun, 20 Feb 2005 23:04:08 +0000 (+0000) Subject: Fix two signed/unsigned warnings. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=b2230c3bda253bf91d775447a2d1bd3d51e25d79 Fix two signed/unsigned warnings. 20:00-20:30 22:00-00:00 --- diff --git a/bigscreen/groupscreen.cpp b/bigscreen/groupscreen.cpp index 7b0175a..1a07234 100644 --- a/bigscreen/groupscreen.cpp +++ b/bigscreen/groupscreen.cpp @@ -453,7 +453,9 @@ void GroupScreen::draw(unsigned char *buf) y += 30; } - if (next_player->total + max_score_this_song > qualify_beat_worst_case && (qualify_beat_worst_case != win_beat)) { + if (group.num_qualifying > 0 && + next_player->total + max_score_this_song > unsigned(qualify_beat_worst_case) && + (unsigned(qualify_beat_worst_case) != win_beat)) { int qual_need = std::max(qualify_beat_worst_case - next_player->total + 1, 0U); if (qualify_beat_worst_case == qualify_beat_best_case) {