From: Ian Jackson Date: Sat, 8 Mar 2014 22:17:53 +0000 (+0000) Subject: apply floor to n_over_best X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=matchsticks-search.git;a=commitdiff_plain;h=8105b2a5831dfba22c83cdd97aea833717c23088 apply floor to n_over_best --- diff --git a/main.c b/main.c index 3e84628..87cb8d7 100644 --- a/main.c +++ b/main.c @@ -113,7 +113,7 @@ static void progress_eol(void) { static void set_best(double new_best) { best = new_best; - n_over_best = n / best; + n_over_best = floor(n / best); } /*----- multicore support -----*/