# HG changeset patch # User jbe # Date 1363547190 -3600 # Node ID 88322e31107be50eeaae5e57e08aa07a880a9ffe # Parent 5f3cd73f328d9e650a5a4bd4c0ab273f9053ff82 Fixed bug in while loop of "loser" function of lf_update_suggestion_order.c, that has been introduced in last commit diff -r 5f3cd73f328d -r 88322e31107b lf_update_suggestion_order.c --- a/lf_update_suggestion_order.c Sun Mar 17 20:03:01 2013 +0100 +++ b/lf_update_suggestion_order.c Sun Mar 17 20:06:30 2013 +0100 @@ -101,8 +101,8 @@ } // calculate remaining candidates to be seated: remaining = candidate_count - round_number; - // repeat following loop, if there is more than one remaining candidate: - if (remaining > 1) while (1) { + // repeat following loop, as long as there is more than one remaining candidate: + while (remaining > 1) { double scale; // factor to be later multiplied with score_per_step: // reset score_per_step for all candidates: for (i=0; i= 1.0) remaining--; } - // when there is only one candidate remaining, then break loop: + // when there is only one candidate remaining, then break inner (and thus outer) loop: if (remaining <= 1) break; } }