X-Git-Url: https://git.cworth.org/git?p=mnemon;a=blobdiff_plain;f=main.c;fp=main.c;h=0002565d6fdb65a4bdb9a411bd68efc32e47e5b5;hp=819878919690335901fa2b9d58d9e02a74d55fe8;hb=34a187901f1ffdf5d29fd66ac6d3614431858148;hpb=5ae11041e3b0f7c5a04795c71fe3794d663eb195 diff --git a/main.c b/main.c index 8198789..0002565 100644 --- a/main.c +++ b/main.c @@ -148,7 +148,7 @@ bin_num_items_matching (bin_t *bin, item_match_predicate_t *predicate, void *closure) { - int i, num_items = 0; + unsigned int i, num_items = 0; if (predicate == NULL) return bin->num_items; @@ -262,10 +262,11 @@ print_histogram (mnemon_t *mnemon, const char *category_name, int length) { - int i, last_score, max; + unsigned int i, max; + int last_score; category_t *category = NULL; bin_t *bin; - int num_items; + unsigned int num_items; item_match_predicate_t *predicate = NULL; void *closure = NULL; item_in_category_closure_t item_in_category; @@ -478,7 +479,7 @@ _do_challenges (mnemon_t *mnemon, progress_t *progress) item_t *item; category_t *category; char *response; - int i; + unsigned int i; /* Count the number of items with negative scores. */ progress->unlearned = 0;